Skip to content
Advertisement

How to get local codepage in linux?

In Windows, I can use GetAPC function to get the local codepage.

But how should I do to get local codepage in Linux?

Thanks.

Advertisement

Answer

Linux does not use code page identifiers. It has locale identifiers, but different processes can have different locales and a process may be using different locales in different categories at once. Every C program starts off in the “C” locale, but can easily set change to locales specified by the environment. Note that locale names can vary between systems.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement