Hey!
I want to be able to write the swedish characters å, ä and ö on my
webpage. And in my database they are stored as utf-8 strings. Using
MySQLdb without webpy to dig in the database results in this output:
(2L, datetime.date(2000, 2, 24), "handp\x86l\x84ggning \x84r n\x84r
man healar,
som Gon brukar g\x94ra p\x86 sin mage... 'heala magen'")
Using webpy with MySQLdb as the "interface" or whatever, results in
this:
<Storage {'content': "handp\xe2\x80\xa0l\xe2\x80\x9eggning
\xe2\x80\x9er n\xe2\x
80\x9er man healar, som Gon brukar g\xe2\x80\x9dra p\xe2\x80\xa0 sin
mage... 'he
ala magen'"}>
Why aren't they the same (ignoring of course everything but the actual
stored text)? When I use webpy to put them in a html template they
don't show up right, ä becomes „ and å becomes †, etc.
What's up with this? How can I change this behaviour? I want my
swedish letters. :P
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.