Character Sets

Hi

I was just wondering if there was a way in which i could find out the character set used in a file in HP-UX. ie Whether it is Unicode, UTF-8,ascii etc.

Regards

Don't know how helpfull this is but the "locale" command will list out your current local env and show what character set is in place.
There is a perl function called perllocale which may help?

Perhaps just use file, e.g...

$ file file1.txt file2.txt
file1.txt:    ASCII English text
file2.txt:    UTF-8 Unicode text

Yup

file command works fine. :slight_smile:

Thanks