• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 251
  • Last Modified:

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
0
jamie_lynn
Asked:
jamie_lynn
  • 2
1 Solution
 
arnoldCommented:
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.
0
 
woolmilkporcCommented:
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
 
0
 
jamie_lynnAuthor Commented:
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
0
 
woolmilkporcCommented:
Hi,
regarding 'locale -a' you're right , but - what suffix?
There is an online encoding recogniser -
http://mindprod.com/applet/encodingrecogniser.html
 
Under Solaris, try 'auto_ef'
wmp
 
 
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now