[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting locale's charset from a script



What options are there for obtaining the charset of the current locale
from a shell script?

If it doesn't already do so, perhaps the iconv command should have an
option to tell you the charset of the current locale, as one of the
most likely reasons for wanting to know it is in order to use it as an
argument to iconv. So you could also have a pseudo-charset "locale",
as in iconv -f locale -t utf-8.

Edmund
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/