Skip to content

Instantly share code, notes, and snippets.

@thanksdanny
Forked from jampajeen/LC_CTYPE.txt
Created December 27, 2016 07:46
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 16 You must be signed in to fork a gist
  • Save thanksdanny/332ca54e46bf96a569ce5d292be52200 to your computer and use it in GitHub Desktop.
Save thanksdanny/332ca54e46bf96a569ce5d292be52200 to your computer and use it in GitHub Desktop.
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
Copy link

ghost commented Nov 28, 2017

it works. thank you.

@amjad-desai
Copy link

Worked for me as well.. Thanks..

@edwardinubuntu
Copy link

Worked for me, thanks.

@ahosam
Copy link

ahosam commented Mar 29, 2018

Working fine, thanks

@rangfu
Copy link

rangfu commented Mar 29, 2018

Perfect, thanks!

@f97-2308
Copy link

Fine... Tks.. 👍

@lawkai
Copy link

lawkai commented Apr 14, 2018

works for me too! thanks!

@pearlboy
Copy link

thank you

@lukedesu
Copy link

lukedesu commented Jul 8, 2020

thanks

@mumblehappyfeet
Copy link

Thank you.

@linnabrown
Copy link

It appears in the RedHat server, so I do not found /etc/environment.
Also, I do not have the permission to edit the file in /etc/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment