3 ms·
My own programs are specifically designed to not use Unicode. I think that Unicode is really messy and I dislike it. If you want to display Japanese text, EUC-J
by zzo38computer 5y ago
My own programs are specifically designed to not use Unicode. I think that Unicode is really messy and I dislike it. If you want to display Japanese text, EUC-JP can be used.
- Matheus28 5y agoI really hope you're being sarcastic
- zzo38computer 5y agoI am not sarcastic. I don't like Unicode.
- patrec 5y agoIf you like, to stick just to Japanese, this: https://upload.wikimedia.org/wikipedia/commons/b/ba/JIS_and_Shift-JIS_variants.svg https://upload.wikimedia.org/wikipedia/commons/b/ba/JIS_and_... better than unicode, you can't be helped. Not that I like unicode much either -- amongst other things the idiotic arrangement of codepoints makes it basically impossible to do remotely efficient text processing; e.g. here's a graph of the automaton the RE2 uses to check if something is an uppercase character: https://swtch.com/~rsc/regexp/cat_Lu.png https://swtch.com/~rsc/regexp/cat_Lu.png (For ascii there would exactly be a single arrow connecting two nodes).
- arp242 5y agoAnd here I was thinking that "Unix variants history" or "Linux audio systems" graphs were messy and complicated...
- yorwba 5y agoThis is about display, not encoding. Using EUC-JP to store text doesn't guarantee that it will be rendered with a Japanese font.
- lmm 5y agoIn practice it does, if it will be rendered at all. Elsewhere on this very page you can find people suggesting storing the display locale alongside the unicode string, which is really the only way to solve this problem in the general case - but in that case you might as well store pairs of byte sequence and encoding, there's not much difference between that and unicode string and locale.
- kalleboo 5y agoAren't the modern text display APIs of the most popular OSes all Unicode-based now? It seems likely that they will convert to Unicode when told to display a string in a different codepage and replace the locale info with the default Unicode behavior (of basing it on the user locale)
- yorwba 5y ago> In practice it does, if it will be rendered at all. Seems like you're right, at least as far as Firefox is concerned. Testing the data links below, it appears to guess the default language based on the encoding used. Neat! data:text/html;charset=euc-jp;base64,PHA+RGVmYXVsdDogv8/EvrOks9G5/Mb+PC9wPjxwIGxhbmc9ImphIj5sYW5nPSJqYSIgv8/EvrOks9G5/Mb+PC9wPjxwIGxhbmc9ImtvIj5sYW5nPSJrbyIgv8/EvrOks9G5/Mb+PC9wPjxwIGxhbm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78qKSwqaRKPC9wPjxwIGxhbmc9InpoLWhrIj5sYW5nPSJ6aC1oayIgpGKqva78qKSwqaRKPC9wPjxwIGxhbmc9InpoLXR3Ij5sYW5nPSJ6aC10dyIgpGKqva78qKSwqaRKPC9wPgoK
- innocenat 5y agoAnd what if you want to display Japanese and Korean at the same time?