maandag 15 april 2013

Setting the UTF8 character set in Ubuntu or Debian in EC2


The EC2 AMI sometimes have the wrong character set. This could be very annoying in for example the German regio where characters like ä und ö are displayed incorrectly. Issue the following commands to switch your Ubuntu/Debian server to the correct character set:

Make sure these variables are set:

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

And don't forget to reconfigure the character set.

locale-gen en_US.UTF-8
dpkg-reconfigure locales

Geen opmerkingen:

Een reactie posten