Server Fault is a question and answer site for system and network administrators. 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'm working in a software development team using svn. Since many developer's computers are working using windows, text file codification has to be agreed with everyone. I decided to use Linux, and probably I will have to change my machine's default character codification. How can this be done in Linux?


share|improve this question
up vote 0 down vote accepted

The trick is ensuring that the LC_ALL and LANG variables are set to something like en@UTF-8 or cn_ZH@UTF-16 or whatever. The format is countrycode_LANGUAGE@CHARSET.

How you set this globally depends on your distribution. Try /etc/sysconfig/i18n. It never hurts adding

export LC_ALL=<whatever>
export LANG=<whatever>

to your users ~/.bashrc though.

Also, read man 1 locale.

share|improve this answer

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.