Ubuntu12.04 set locale

Source: Internet
Author: User
In the configuration environment, each configuration requires a specified environment. I performed operations based on ubuntu12.04 server to ensure the feasibility. For other versions, you need to experiment with the locale command format.
/Usr/bin/Locale [Options]

Parameter Details

-A, -- all-locales write the name of the available region-M, -- charmaps write the name of the available character ing

Application Instance (1) retrieve names and values of all environment variables in the current language environment (2) List names of all available public Language Environments install and uninstall two scripts in a language variable call, for specific implementation, see the script source code locale-Gen to generate the local file command format

/Usr/bin/locale-gen [Options]

Parameter Details

-- Purge deletes all existing locale configurations before running (this command is most useful when locale fails) -- archive stores compiled language environment data in an archive file

Application Instance (1) Delete the previous error configuration file and regenerate the locale file (2) Add Chinese utf8 support

Modify the current locale

View the currently available language environment. Import locale variables using export.
Export lang = "the language environment variable you need"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.