Help Center/ Huawei Cloud EulerOS/ FAQs/ How Do I Add a Character Set?
Updated on 2025-09-04 GMT+08:00

How Do I Add a Character Set?

By default, only some common character sets are installed in HCE. If you need other character sets, perform the following steps to install them:

Before the installation, ensure that the repository is correctly configured. For details, see Configuring Repositories and Installing Software for HCE.

  1. Run dnf install glibc-all-langpacks glibc-locale-archive -y.

    Figure 1 Installing character sets

  2. Run locale -a to check whether the required character sets have been installed.

    Figure 2 Checking the installed character sets

  3. To switch the language, run the following command (Polish is used as an example):

    localectl set-locale LANG=pl_PL.UTF-8

  4. Restart HCE for the changes to take effect.