News for hackers. Stuff that matters.
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.
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.
Re:Ruby 1.9 made me remember how I hate the concept of encod... by sid0 on Thursday May 13, 2010 @01:16PM (#1344875)
I'm pretty sure C# uses UTF-16, not UTF-8. Regardless, Unicode is Unicode.
Re:Ruby 1.9 made me remember how I hate the concept of encod... by DrJokepu on Thursday May 13, 2010 @03:55PM (#1345425)
Actually you're right, UTF-16 it is. Unfortunately it is too late to edit (or delete) my original comment.