Translation table to map Latin-1 to ASCII?
Anders J. Munch
andersjm at inbound.dk
Sun Jan 26 12:51:15 EST 2003
"Rene Pijlman" <reageer.in at de.nieuwsgroep> wrote:
> accentstable = string.join(map(chr, range(192)), "") +
> "AAAAAAACEEEEIIIIDNOOOOOxOUUUUYpBaaaaaaaceeeeiiiionooooo/ouuuuypy"
>
> This also maps some funny characters which are not just accented
> letters,
Among other things you map Icelandic thorn to p.
You may want to reconsider that.
>but in this way it's all ASCII that I can post on
> Usenet.
You can post latin-1 just fine. At least your headers seem to think so:
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
- Anders
More information about the Python-list
mailing list