string title() method does not work on Danish characters

Jason Orendorff jason at
Thu Feb 28 11:09:08 EST 2002

Max M wrote:
> Thanks for the suggestion, but it does not solve my problem. I am 
> pulling the data from an older MS SQL server that returns standard ascii.

If it contains characters >127, it's not standard ASCII.
It's probably ISO-8859-1, aka Latin-1, aka Western Europe.

If you're getting this data back as 8-bit strings, then you need
to convert them to unicode first:

ustr = s.decode('latin-1')
ustr = ustr.title()

## Jason Orendorff

More information about the Python-list mailing list