Converting foreign characters to HTML characters entities

Roman Suzi rnd at onego.ru
Mon May 21 14:00:40 EDT 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
>party objects?
>
>latz

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 mailing list