Link to home
Start Free TrialLog in
Avatar of jamie_lynn
jamie_lynn

asked on

How do I get the list of supported encodings from the OS?

Hi,
How do I get the list of supported encodings from the OS?
Is there a system function for this?

Thanks
Jamie
Avatar of arnold
arnold
Flag of United States of America image

What do you mean? encoding in what context? What are you encoding: text, movies, images, filesystem?
Encoding is often performed by other applications.  You need to locate an application that can encode and see whether there is an application that runs on your OS.  Once you locate the application, you can either check whether it is available on your system or get it installed on your system.
Hi,
perhaps you mean the current and available languages and character sets?
These can be displayed using 'locale'
'locale -a' displays all available (public) locales, and
'locale' displays the current setiings.
Check the 'locale' manpage for more, and please correct us if we misunderstood your question.
 
wmp
 
Avatar of jamie_lynn
jamie_lynn

ASKER

Hi,
I meant the character encodings like UTF-8, EUC_JIS, BIG5, etc.
I guess I can run locale -a and parse for the suffix

Is there any way i can determine what encoding the filename is in?

Thanks
Jamie
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial