Help : looking for language -> best encoding scheme dict.
David Necas (Yeti)
yeti at physics.muni.cz
Tue Dec 10 13:38:34 EST 2002
On Tue, Dec 10, 2002 at 07:32:43PM +0100, Gillou wrote:
> Hi,
>
> Has someone already got a dictionnary (or tuple of tuples) that associate
> the ISO language codes to the prefered encoding scheme for that language (as
> expected by "unicodestring.encode(...)" ).
>
> In example :
>
> dict = {
> 'en': 'ascii',
> 'fr': 'iso8859-1',
> 'es': 'iso8859-1,
> ...}
It may differ between systems.
What about nl_langinfo()? One of the items is charset.
(unfortunately it's SUSv2, i.e. not available everywhere)
Yeti
More information about the Python-list
mailing list