bernhard: thuban ChangeLog,1.757,1.758
Bernhard Herzog
bh at intevation.de
Thu Jan 20 12:42:34 CET 2005
Bernhard Reiter <bernhard at intevation.de> writes:
> If you use "ascii" which is the default calling .encode() will use,
> then it also bombs becaue of the latin1 characters in the about dialog.
We should use the the "replace" error handler for the encode method.
Even if we know the target encoding, we have no guarantee at all that it
supports all the characters we need. With "replace" we won't get an
exception and the user will see a "?" for characters that couldn't be
converted. not ideal, but there's not much we can do about it.
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://skencil.org/
Thuban http://thuban.intevation.org/
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)