* Martin Michlmayr <[EMAIL PROTECTED]> [2005-05-27 08:11]:
> > The script will have to encode the Unicode strings to the locale
> > encoding, e.g. through .encode(locale.nl_langinfo(locale.CODESET)).
> 
> But why the script and not the Python binding?
> 
> Is there a case where you'd want to .encode anyting als than what your
> current locale uses?

To answer myself here, I guess one advantage is that the scripts can
then specify what happens if the encode fails (replace or raise an
exception).  But maybe the binding could deal with it in a sensible
way when you pass an Unicode string directly (i.e. .encode to current
locale and replace).
-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to