Hi,
The sample string below appears correctly (ie. no "?"'s) for me; are
you saying that it does for you, or that it doesn't?
If you're just having a problem with rendered HTML: I'm not sure how
you're entering those characters, but I'm guessing that they're being
stored as Unicode characters, or at least, something outside whatever
the default charset used by HTML is. If so: Are you putting the
appropriate headers in your HTML document to tell your Web browser
that you're using Unicode, as opposed to the more-traditional ASCII?
Those escapes exist for a reason, namely, that the characters that
they represent don't normally work in an HTML file.
Adam
On Dec 28, 2006, at 9:18 AM, dutche wrote:
I don't know why, but when I write or take from the Database a word
with some kind of accent, Django shows a "?" instead. Why?? I've
changed the language in settings.py and even the TimeZone. If I escape
the chars with something like "á" it works, so isn't a problem
with my browser, right?
Does anybody knows what can be it?? I've made a simple test to see
what
the template returns, and it returns the "string" below:
t = Template("My special letters are : áéíóú")
c = Context({})
t.render(c)
'My special letters are : \xe1\xe9\xed\xf3\xfa'
print t.render(c)
My special letters are : áéíóú
Any idea?
Thanks
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---