Skip to content

Instantly share code, notes, and snippets.

@Lh4cKg
Created April 27, 2016 08:58
Show Gist options
  • Save Lh4cKg/382a75d257e69b48edeb03077eae7348 to your computer and use it in GitHub Desktop.
Save Lh4cKg/382a75d257e69b48edeb03077eae7348 to your computer and use it in GitHub Desktop.
Fedora 24/Centos 7 set locale LANG configuration in terminal output non-ASCII character
[innotec@innotec ~]$ export LANG=en_US.UTF-8
[innotec@innotec ~]$ sudo localectl set-locale LANG=en_US.UTF-8
[innotec@innotec ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.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=
LANG=en_US.UTF-8 # add LANG in /etc/locale.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment