Converting foreign characters to HTML characters entities
rnd at onego.ru
Mon May 21 20:00:40 CEST 2001
On 21 May 2001, Lutz Schroeer wrote:
>My program reads strings out of a database and converts them to an HTML-
>page. The string contains German Umlauts which I would like to convert to
>HTML character entities.
>Is there any simple method to do this without explicitly writing a function
>by myself? Are there any standard modules which I didn't find or any third
Probably you can use GNU recode and Python wrapper to it.
It has HTML..your_encoding thing.
Sincerely yours, Roman Suzi
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Sunday, May 20, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Even Mother Nature doesn't mess with Moderators." _/
More information about the Python-list