How to do special encode in string ?

fowlertrainer at anonym.hu fowlertrainer at anonym.hu
Wed Jun 23 05:28:03 EDT 2004


Hi !

I'm hungarian, we use special characters like:
á - a'
ő -o"

etc.

I want to encode this characters to in config file I see these
characters as \nnn format.
And I want to decode it automatically with python.

How to I do it without write complex converter tool ?

Thanx for it:
FT

Example:
Encode("az állam én vagyok") -> "az \xe1llam \xe9n vagyok"

Decode("az \xe1llam \xe9n vagyok") -> "az állam én vagyok"





More information about the Python-list mailing list