[Pythonmac-SIG] MacASCII to ISO-Latin conversion
Jack Jansen
jack@oratrix.nl
Thu, 30 Mar 2000 22:04:39 +0200
If you can wait until 1.6a1, due in a month or so, your problem will
be solved, as Python will speak Unicode and has all the converters
available.
If you can't wait you'll have to dig up a translation table
somewhere. Once you have such a table ... Hmm, let me check [... pom
pom ...] No, I thought I might have one lying around. Anyway, once you
have such a table you make a string with 256 characters, where the
N-th character is 'M' if chr(N) in your source-charset should be
translated to 'M' in your destination set. You pass this as an
argument to string.translate and there you are.
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm