help with django and accented characters?
Posted
by Asinox
on Stack Overflow
See other posts from Stack Overflow
or by Asinox
Published on 2010-06-14T02:39:00Z
Indexed on
2010/06/14
2:42 UTC
Read the original article
Hit count: 452
Hi guys, i have a problem with my accented characters, Django admin save my data without encoding to something like "á
"
Example: if im trying a word like " Canción ", i would like to save in this way: Canción
, and not Canción.
im usign Sociable app:
{% load sociable_tags %}
{% get_sociable Facebook TwitThis Google MySpace del.icio.us YahooBuzz Live as sociable_links with url=object.get_absolute_url title=object.titulo %}
{% for link in sociable_links %}
<a href="{{ link.link }}"><img alt="{{ link.site }}" title="{{ link.site }}" src="{{ link.image }}" /></a>
{% endfor %}
But im getting error if my object.titulo (title of the article) have a accented word.
aught KeyError while rendering: u'\xfa'
Any idea ?
i had in my SETTING:
DEFAULT_CHARSET = 'utf-8'
i had in my mysql database:
utf8_general_ci
thanks, sorry with my English
© Stack Overflow or respective owner