[MacRuby-devel] New error

Vincent Isambart vincent.isambart at gmail.com
Wed Mar 17 01:31:27 PDT 2010


>  Interestingly, this construct does not work on ruby1.9 either, the error
> being:
> mixedchars.rb:4: invalid multibyte char (US-ASCII)
> So you might want to adopt a more Unicode-friendly way of embedding such
> characters in any case.  How to actually do that is left as an exercise for
> the reader. ;-)
In 1.9 you need to specify the encoding on the first line of the file:
(the default is ASCII that does not include the degree ° character)
# encoding: utf-8
In MacRuby currently it's always UTF-8.

Anyway Laurent just merged the ICU branch and the work on strings is
not finished.
I'd recommend trying again in a few days.


More information about the MacRuby-devel mailing list