MutableString issues on IronRuby

Hi!

I’m struggling with a weird error - I have a string filled up with
binary data, and when I ask .length to it, CLR raises an exception
telling it could not convert from specified charset to unicode. Is there
any place to inform ironruby to use the “none” encoding for such
strings? (as like MRI 1.8 works) - It’s a bug, a feature?

IronRuby 1.0 (.net 2.0)

Thanks!

Douglas Campos (qmx)
[email protected]
+55 11 6762 5959

Could you please send a snippet of code or a file that demonstrates the
problem?

Tomas

Thanks for the fast response

https://gist.github.com/cb0450e5b2cb714a0ce8

HTH

On Jun 29, 2010, at 1:27 AM, Tomas M. wrote:

Hi!
+55 11 6762 5959


Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core


Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Douglas Campos (qmx)
[email protected]
+55 11 6762 5959

Douglas Campos wrote:

Hi!

I’m struggling with a weird error - I have a string filled up with
binary data, and when I ask .length to it, CLR raises an exception
telling it could not convert from specified charset to unicode. Is there
any place to inform ironruby to use the “none” encoding for such
strings? (as like MRI 1.8 works) - It’s a bug, a feature?

IronRuby 1.0 (.net 2.0)

Thanks!

Douglas Campos (qmx)
[email protected]
+55 11 6762 5959

I have also had some issues with MutableString not support the
IConvertable Interface used by the Convert C# class.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs