You are not logged in.

#1 2012-10-15 16:28:29

rEnr3n
Member
Registered: 2012-07-25
Posts: 39

[SOLVED] Some apps cannot recognize korean/japanese characters

I have music files with korean and japanese filenames. I have already installed otf-ipafont and ttf-baekmuk.

$ locale -a

C
en_US
en_US.iso88591
en_US.utf8
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
ko_KR
ko_KR.euckr
ko_KR.utf8
korean
korean.euc
POSIX

$ locale

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

I play the music through MPD (mpc as client). The right characters are displayed when I run `mpc`. My filemanager (spacefm) and terminals (guake and lilyterm) can read the characters fine. But when I open the files using VLC and SMplayer, I see rectangles instead. Conky also have this problem. What's the problem here? I ran out of clues. Thank you.

Last edited by rEnr3n (2012-10-17 14:20:18)

Offline

#2 2012-10-15 17:13:31

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Some apps cannot recognize korean/japanese characters

vlc and smplayer both use qt, so maybe something qt related...

As for conky which font are you using for it?

Offline

#3 2012-10-15 17:37:53

rEnr3n
Member
Registered: 2012-07-25
Posts: 39

Re: [SOLVED] Some apps cannot recognize korean/japanese characters

x33a wrote:

vlc and smplayer both use qt, so maybe something qt related...

As for conky which font are you using for it?

I don't see anything about encoding in qtconfig.

.conkyrc

use_xft yes
xftfont DejaVu Sans Mono:size=12
override_utf8_locale yes

Offline

#4 2012-10-15 17:55:14

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Some apps cannot recognize korean/japanese characters

Try setting the cjk font directly in conky. I am using conky-cli and it displays fine inside in the terminal (due to fallback font, i assume).

Offline

#5 2012-10-15 20:21:10

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: [SOLVED] Some apps cannot recognize korean/japanese characters

rectangles == font you are using does not have the character. Change the font for the apps that doesn't render the chars.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2012-10-16 08:02:18

rEnr3n
Member
Registered: 2012-07-25
Posts: 39

Re: [SOLVED] Some apps cannot recognize korean/japanese characters

Ah. SMplayer and VLC doesn't seem to have the problem as I can see the right characters on 'Recently played' menu. The problem was on fluxbox. I searched about it and it says I should put this on my style's config:

window.font:                         -*-*-*-*-*-*-*-*-*-*-*-*-*-u

But after that, the fonts got bigger. The bottom part of the text got purged. Anybody have any info regarding that config? I don't understand what the series of dashes and asterisks mean.

Offline

#7 2012-10-16 09:44:29

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Some apps cannot recognize korean/japanese characters

rEnr3n wrote:

I don't understand what the series of dashes and asterisks mean.

You'll understand after you play around in:

$ xfontsel

But it's probably not a font issue (unless you skipped DejaVu). I think your locale is set wrong. Here's mine:

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_GB.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

("LC_TIME" is UK's dd/mm/yyyy format, because US's mm/dd/yyyy pisses me off too much)

... while yours is set:

rEnr3n wrote:

$ locale

LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

Notice the difference?

Remove any "export" from ~/.xinitrc, ~/.bashrc, or whatever startup file your DE/WM uses, comment out everything in /etc/locale.gen except for en_US, the UTF-8 variant (which will cover Asian characters just fine) and run locale-gen. Then stick it in /etc/locale.conf and reboot:

# echo LANG=en_US.UTF-8 > /etc/locale.conf
# reboot

Basically, these instructions.

Also, make sure you don't have "LOCALE=" set in /etc/rc.conf. Arch has officially moved to systemd, and that file is pretty much useless now... See: http://www.archlinux.org/news/systemd-i … allations/


And don't forget to mark the topic as solved (by editing the first post) so that other people (including yourself sometimes) may find useful.

Last edited by DSpider (2012-10-16 09:47:30)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#8 2012-10-16 10:02:46

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Some apps cannot recognize korean/japanese characters

For X terminals and file managers it's not a problem. They show up fine, probably because they use the next font that contains those glyphs.

But for conky (and the tty, apparently), it's definitely a font issue: https://bbs.archlinux.org/viewtopic.php?id=55202

Last edited by DSpider (2012-10-16 10:07:04)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB