After loading the latest nightly build I have a new error message generated by the following string: "#{degrees}° #{minutes}' #{seconds}\"" returns: incompatible character encodings: US-ASCII and UTF-8 Is there something I can change so that I can use special characters again? Bob Rice
I think you've simply found a bug, which you might want to enter into Trac. 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. ;-) - Jordan On Mar 16, 2010, at 7:32 PM, Robert Rice wrote:
After loading the latest nightly build I have a new error message generated by the following string:
"#{degrees}° #{minutes}' #{seconds}\""
returns:
incompatible character encodings: US-ASCII and UTF-8
Is there something I can change so that I can use special characters again?
Bob Rice
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
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.
I fixed the problem in r3784 (I believe). But as Vincent said, trunk is under heavy development at the moment, so please wait a bit until things get more stable (should be better by the end of the week). Laurent On Mar 17, 2010, at 1:31 AM, Vincent Isambart wrote:
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. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Well, -trunk works for me now with that example, so looks good so far! - Jordan On Mar 17, 2010, at 2:00 AM, Laurent Sansonetti wrote:
I fixed the problem in r3784 (I believe).
But as Vincent said, trunk is under heavy development at the moment, so please wait a bit until things get more stable (should be better by the end of the week).
Laurent
On Mar 17, 2010, at 1:31 AM, Vincent Isambart wrote:
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. _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (4)
-
Jordan K. Hubbard
-
Laurent Sansonetti
-
Robert Rice
-
Vincent Isambart