How to convert an UTF string with scandinavian characters to ASCII?
- by bebraw
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.