How to do special encode in string ?

fowlertrainer at fowlertrainer at
Tue Jun 22 14:39:36 CEST 2004

Hi !

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


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:

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