FAQ
:

On Fri, Oct 18, 2013 at 01:45:53PM -0700, caldwellinva at gmail.com wrote:
I am looking for an example of a UNICODE to ASCII conversion example
that will remove diacritics from characters (and leave the characters,
i.e., Kl?ft to Kluft) as well as handle the conversion of other
characters, like gro?e to grosse.

This:


     https://pypi.python.org/pypi/Unidecode/


... seems to work:

from unidecode import unidecode
unidecode("Kl?ft, gro?e")
     'Kluft, grosse'
unidecode("????? ?????????? ??")
     'Tekst dekodiruet vy'


  -[]z.


--
Zero Piraeus: post scriptum
http://etiol.net/pubkey.asc

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 17 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedOct 18, '13 at 8:45p
activeOct 20, '13 at 9:11a
posts17
users8
websitepython.org

People

Translate

site design / logo © 2022 Grokbase