3 ms·
I've never had any issue for as long as every I/O had their charset properly declared, do you have done samples to share?
by LoSboccacc 6y ago
I've never had any issue for as long as every I/O had their charset properly declared, do you have done samples to share?
- maple3142 6y agoMaybe reversing or splitting a Unicode string (with surrogate pairs) may be a problem in Java. I am not familiar with Java, so I am not sure.
- nradov 6y agoIO isn't the problem. The issue is that a lot of code assumes that each string character is represented by a single char value, which isn't correct.
- LoSboccacc 6y agoyou can't do that in Java, string length is computed correctly for you and character loops give you normalised code points you have to go at greath length to get a broken character out of a valid string, including casting and cutting it intentionally