Contents
How do I set locale to UTF-8 in Linux?
If you want to change or set system local, use the update-locale program. The LANG variable allows you to set the locale for the entire system. The following command sets LANG to en_IN. UTF-8 and removes definitions for LANGUAGE.
What is locale command in Linux?
The locale command displays information about the current locale, or all locales, on standard output. When invoked without arguments, locale displays the current locale settings for each locale category (see locale(5)), based on the settings of the environment variables that control the locale (see locale(7)).
What is Lang in Linux?
Each host has a system setting for the Linux environment variable LANG . LANG determines the locale category for native language, local customs, and coded character set in the absence of the LC_ALL and other LC_ environment variables.
How to fix UTF-8 / locale problem in openSUSE Linux?
In the C locale, every byte is a character but 0xc3 and 0xa9 are unknown ones as they are not in ASCII, so ls -q (and -q is enabled when the output goes to a terminal) renders them as ?. You probably won’t find a a4 in there. If you want the paper size to be A4, where locale -k LC_PAPER outputs:
Why is my file name incorrect in openSUSE?
Thus some observations that may help or not. The problem you see with the incorrect interpreted file name is IMHO not so much about locale, but about character encoding. All file names in Linux should be encoded in UTF-8 since already a long time. Apparently some software here interprets the name as having another encoding.
How do I set locale-openSUSE in YaST?
If I switch primary language to “German – Deutsch”, and then click on Details -> Detailed Locale Setting, I can choose between de_AT, de_BE etc, but there is no en_DE. Final note, in YAST -> System -> etc/sysconfig Editor -> System -> Environment -> Language, there are a bunch of settings, among others RC_LANG, RC_LC_CTYPE and RC_LC_COLLATE.
Is the locale generated in Arch Linux or openSUSE?
In Arch Linux I would check whether locales are generated but I found nothing on the subject in openSUSE. Also, the locale does seem to exist. So it’s correct UTF-8 (as far as I can tell). The LC_PAPER=a4 variable prevents UTF-8 encoded Unicode characters from being printed (no pun intended) on screen!