string encoding - how to make it work

Martin v. Löwis loewis at informatik.hu-berlin.de
Wed Jul 17 07:56:01 EDT 2002


"Henry Baumgartl" <h.baumgartl at chello.NOSPAM.nl> writes:

> Is there a way, using standard string methods, to write code that will
> always generate the same output?

No. You have to know what encoding the terminal uses. Some terminals
have no programmatic way to find out. So this isn't just possible in
Python; it is impossible in any language.

Regards,
Martin



More information about the Python-list mailing list