Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some files that using japanese, korean and chinese characters in their filename, this is the example filename

栗山千明 - おいしい季節決定的三分間.rar

but when i tried to ls -w1 *.rar in the yakuake console, it shows as:

æ å±±åæ - ããããå­£ç¯æ±ºå®çä¸åé.rar

my locale output:


I'm using Ubuntu Mono font for the console..

Is there a way to fix this?

share|improve this question
up vote 1 down vote accepted

Well, the problem here is that the console you're using is set up to display hi-bit characters as iso 8859-1 characters instead of as UTF-8 characters. Now the way to change a given terminal to use UTF-8 instead of ISO 8859-1 depends on the exact terminal being used:

  • xterm is told to display utf-8 characters via the -u8 command line option when launching or via the XTERM_LOCALE environmental variable
  • Gnome terminal sets the character set to display characters via Terminal -> Set Character Encoding
  • If logging in to a UNIX machine from PuTTY, change the character encoding by setting Window -> Translation before logging in
  • If not in X and at a Linux console, the setfont command is the one to use, e.g. setfont -m utf-8 or, on older systems, the mapscrn command. More information: http://linux.die.net/man/8/setfont
  • If using some other terminal to get to the console, the procedure will be different

Similar discussion: Characters encodings supported by more, cat and less

share|improve this answer
the encoding on yakuake is already UTF-8 (Manage Current Profile > Advanced > Encoding > UTF-8) – Kokizzu Feb 2 '14 at 3:16
ah, by setting export TERM='xterm -u8' it works ^^ thanks – Kokizzu Feb 2 '14 at 3:18
ah wait, i don't even do a thing (adding export TERM), this already work after restarting '___' – Kokizzu Feb 2 '14 at 3:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.