On Sun, 2007-10-07 at 12:28 +0530, Kenneth Gonsalves wrote:
> Hi,
>
> after upgrading to the unicode branch - I am using svn trunk, I find
> that in the changelist, when I want to change an entry where there
> are non-ascii characters in the name, I am getting an ascii cant
> decode the non-ascii characters. This is appearing in line 15 of
> change_form.html, in this particular code block: {{ original|
> truncatewords:"18"|escape }}. When creating a new record, the record
> gets saved, but the changelist with the success message doesnt come
> up. The same problem arises if I try to edit the particular item.
> This only happens when non-ascii characters are in the name to be
> edited. Otherrwise the app is fully unicode and there are no
> problems. I have temporarily solved the problem by removing {{ orig
> {{ original|truncatewords:"18"|escape }}, but this is of course a
> temporary and bad hack. Does a bug report need to be filed for this?
It sounds like "original" is not UTF-8 or Unicode, so you might want to
investigate that. However, non-ASCII characters have been pretty
thoroughly tested throughout Admin, including loading, saving and
viewing in change logs. So it's not universally broken and there's
something special about what you are doing.
If you do decided it's a problem in Django, please include a small
example (as small as possible) and the exact steps to reproduce the
problem -- it's not clear to me from the above description what you are
doing to cause the issue. It's also important to note which version of
Python you are using, as well as the database and the database encoding
(and databse backend in the case of mysql or postgresql, since there are
differences between the choices). I recently looked at another i18n bug
of yours that appears to have been only caused with Python 2.3 and that
sort of information is important to know when diagnosing these things.
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---