String multi-replace

Peter Otten __peter__ at web.de
Thu Nov 18 10:39:23 CET 2010


Sorin Schwimmer wrote:

> I have to eliminate diacritics in a fairly large file.
> 
> Inspired by http://code.activestate.com/recipes/81330/, I came up with the
> following code:

Here's the unicode.translate()-based approach spelt out:

http://effbot.org/zone/unicode-convert.htm

Peter



More information about the Python-list mailing list