How to convert 'ö' to 'oe' or 'o' (or other similar things) in a string?

Thorsten Kampe thorsten at thorstenkampe.de
Sun Sep 18 01:59:36 EDT 2016


* Martin Schöön (17 Sep 2016 20:20:12 GMT)
> 
> Den 2016-09-17 skrev Kouli <dev at kou.li>:
> > Hello, try the Unidecode module - https://pypi.python.org/pypi/Unidecode.
> >
> > Kouli
> >
> > On Sat, Sep 17, 2016 at 6:12 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
> >> Hi, I want to convert strings in which the characters with accents
> >> should be converted to the ones without accents. Here is my current
> >> code.
> 
> Side note from Sweden. Å, ä and ö are not accented characters in our 
> language. They are characters of their own.

I think he meant diacritics.

Thorsten




More information about the Python-list mailing list