Escape chars in string

Ivo Woltring TheDolphin at ivonet.nl
Mon Nov 8 15:20:11 EST 2004


Dear Pythoneers,

I have this app that I want to be able to present in more than 1 language.
To do this I use ConfigParser with an ini file.

My question:
when I 'get()' the message with ConfigParser the \t in the string is a
litteral and is not translated to a tab. Why is this so?
if I do tests with somthing like s = '&Quit\tAlt-Q' it does work.

What is the difference? and how can I get the desired behavior?

e.g.
[msg_quit]
uk = &Quit\tAlt-Q
nl = &Stoppen\tAlt-S


Hope y'all can help
Ivo.







More information about the Python-list mailing list