How to convert an UTF string with scandinavian characters to ASCII?
Posted
by bebraw
on Stack Overflow
See other posts from Stack Overflow
or by bebraw
Published on 2010-03-25T17:41:18Z
Indexed on
2010/03/25
17:43 UTC
Read the original article
Hit count: 315
I would like to convert this string
foo_utf = u'nästy chäräctörs with å and co.' # unicode
into this
foo_ascii = 'nästy chäräctörs with å and co.' # ASCII
.
Any idea how to do this in Python (2.6)? I found unicodedata module but I have no idea how to do the transformation.
© Stack Overflow or respective owner