German umlaut in a string.
Michael Hudson
mwh at python.net
Thu Aug 14 13:18:41 EDT 2003
Lukas Kasprowicz <nospam at maniacxs.de> writes:
> Hi Leszek,
>
> When I create a string with
>
> <variable>="String"
>
> It works!
>
> But I have a string that was converted from a tuple to a string.
Oh, hang on... when you 'str' a tuple, its contents get 'repr'ed, so
you get backslash escapes...
Cheers,
mwh
PS: You want to be using the .replace() string method for things like
this
--
Some people say that a monkey would bang out the complete works
of Shakespeare on a typewriter give an unlimited amount of time.
In the meantime, what they would probably produce is a valid
sendmail configuration file. -- Nicholas Petreley
More information about the Python-list
mailing list