3 ms·
Reading this, I'm thinking if it's possible (and if yes, how), to write java and javascript program in other encodings that they internally use, for example UCS
by finchisko 7y ago
Reading this, I'm thinking if it's possible (and if yes, how), to write java and javascript program in other encodings that they internally use, for example UCS-4. If yes, what is doing the conversation (parser, compiler?).
- unascribed 7y agoI've personally done this in Java, as mentioned. Generally I use fastutil to create an IntList (which is just an int[] with some conveniences) and use Java's Character class to convert between UTF-16 and UCS-4 on-the-fly. It's not very fast, but it makes flawless Unicode support easy. :P