Re:Ruby 1.9 made me remember how I hate the concept of encod...
by crazydiamond on Thursday May 13, 2010 @10:04AM
(#1344252)
I am not sure anyone else has it right, meaning Java and Python. I have read some article a month or 2 back, detailing what others have done -- none are proper/complete solutions.
But from what I've seen in ruby discussion, a lot of rubyists are having problems with the new encoding system.
[ Parent
| on HN ]
Re:Ruby 1.9 made me remember how I hate the concept of encod...
by DrJokepu on Thursday May 13, 2010 @10:07AM
(#1344267)
In C#, everything is assumed to be UTF-8 unless you explicitly change the encoding (the language-independent runtime is a bit more complicated). The only exception is where it is likely that some input in not UTF-8 (such as a byte array), in that case, you have to explicitly define the encoding to use. Works pretty well, never really had encoding problems in C# and I had my share of dealing with non-latin characters in my apps.
Re:Ruby 1.9 made me remember how I hate the concept of encod...
by crazydiamond on Thursday May 13, 2010 @10:25AM
(#1344325)
I really can't recall the details but there are still some Asian character sets (Chinese iirc) that are not fully covered. The "two-way conversion" fails. And this was with UTF-16 iirc.