Ordinal not in range(128)
Jarek Zgoda
jzgoda at usun.gazeta.pl
Mon Mar 3 15:15:24 EST 2003
Fabien HENON <fabien.henon at caramail.com> pisze:
> In my case, my editor is multilanguage and users can choose between many
> fonts. I am not a Unix guru, but latin-1 is for Western Europe (?). Is
> it going to work for polish or Spaniards,...
No, it will not work for Polish (and any CE - Czech, Slovak, Slovene or
Croatian) locales - standard *nix is iso-8859-2 (Latin2), Windows is
CP1250.
Maybe you can use sys.getdefaultencoding() or locale.getdefaultlocale()
to obtain current character encoding?
--
Jarek Zgoda
http://www.zgoda.biz/ JID:zgoda at jabber.atman.pl
More information about the Python-list
mailing list