You are not logged in.

#1 2018-09-18 14:05:45

npour
Member
Registered: 2018-09-18
Posts: 3

[Solved] Issue loading Japanese characters in various programs

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

#2 2018-09-18 14:39:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,840

Re: [Solved] Issue loading Japanese characters in various programs

utf-16 file?
Can you upload it?
Try passing it through iconv, "-f UTF16", "-f UTF16BE" and "-f UTF16LE".

Offline

#3 2018-09-18 15:00:11

npour
Member
Registered: 2018-09-18
Posts: 3

Re: [Solved] Issue loading Japanese characters in various programs

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

Board footer

Powered by FluxBB