3 ms·
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/
by crazydiamond 16y ago
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.
- DrJokepu 16y agoIn 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.
- crazydiamond 16y agoI 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.
- sid0 16y agoI'm pretty sure C# uses UTF-16, not UTF-8. Regardless, Unicode is Unicode.
- DrJokepu 16y agoActually you're right, UTF-16 it is. Unfortunately it is too late to edit (or delete) my original comment.