string conversion latin2 to ascii

kyosohma at gmail.com kyosohma at gmail.com
Tue Nov 27 16:45:42 EST 2007


On Nov 27, 3:35 pm, Martin Landa <landa.mar... at gmail.com> wrote:
> Hi all,
>
> sorry for a newbie question. I have unicode string (or better say
> latin2 encoding) containing non-ascii characters, e.g.
>
> s = "Ukázka_možnosti_využití_programu_OpenJUMP_v_SOA"
>
> I would like to convert this string to plain ascii (using some lookup
> table for latin2)
>
> to get
>
> -> Ukazka_moznosti_vyuziti_programu_OpenJUMP_v_SOA
>
> Thanks for any hits! Regards, Martin Landa

With a little googling, I found this:

http://www.peterbe.com/plog/unicode-to-ascii

You might also find this article useful:

http://www.reportlab.com/i18n/python_unicode_tutorial.html

Mike



More information about the Python-list mailing list