You are not logged in.
Hello,
I have a weird issue I'm very confused about, it's probably a really stupid thing. The issue happens when I open up various text editors to edit a file containing Japanese characters they show up as:
https://i.imgur.com/ONZP5Ik.png (gedit)
https://i.imgur.com/jRApeMP.png (vim)
https://i.imgur.com/FJKz0Ga.png (vs code)
but when I load it up in chrome (it's an XML file) they show up correctly
https://i.imgur.com/3MCnJfE.png
and what's more confusing is that when i paste over the content from chrome, it seems to work.
https://i.imgur.com/MwXYZc5.png
I have generated a Japanese locale, I have downloaded just about every Japanese font there is, I'm really confused why this is happening.
I'm running arch with gnome 3 / gdm.
The files behave properly while on windows.
Why is this happening?
Last edited by npour (2018-09-18 15:00:23)
Offline
utf-16 file?
Can you upload it?
Try passing it through iconv, "-f UTF16", "-f UTF16BE" and "-f UTF16LE".
Offline
Ah, thank you, I hadn't thought of the files character encoding being messed up like this, very stupid, thank you very much. I managed to fix it.
Offline