Opened 17 years ago

Closed 17 years ago

#4885 closed (worksforme)

non-ASCII UTF-8 characters in messages on admin pages are displayed incorrectly

Reported by: anonymous Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

I pulled the latest code from SVN 2-3 days ago (around July 13, 2007), which has the unicode branch merged. In general it works very well with UTF-8, but here I noticed a small glitch:

When following the "poll/choice" tutorial example, if I enter some non-ASCII characters (Chinese in this case) when editing a poll question on the admin page, after "save" button is pushed, the confirmation message is displayed as:

The poll "???????" was changed successfully.

Notice the "?" mark above?

I beleive I have set all my settings correctly (mainly the MySql charset settings), since my poll question is displayed correctly at other places on the admin page.

Thank you for taking a look into this.

Wanrong Lin

Change History (3)

in reply to:  description comment:1 by anonymous, 17 years ago

More observations:

The UTF-8 characters under "My Actions" are displayed incorrectly too. I viewed the pages with firefox 1.5.

Wanrong Lin

Replying to anonymous:

Hi,

I pulled the latest code from SVN 2-3 days ago (around July 13, 2007), which has the unicode branch merged. In general it works very well with UTF-8, but here I noticed a small glitch:

When following the "poll/choice" tutorial example, if I enter some non-ASCII characters (Chinese in this case) when editing a poll question on the admin page, after "save" button is pushed, the confirmation message is displayed as:

The poll "???????" was changed successfully.

Notice the "?" mark above?

I beleive I have set all my settings correctly (mainly the MySql charset settings), since my poll question is displayed correctly at other places on the admin page.

Thank you for taking a look into this.

Wanrong Lin

comment:2 by Malcolm Tredinnick, 17 years ago

What version of Python are you using and what checkout of Django are you using (run "svn info" to work out the latter)?

This problem doesn't occur for me, so there's something special about your setup. Have a look in the django_admin_log table in the MySQL database and see if the data is stored there correctly. Also look at the results of

show variables like 'character_set%';

in MySQL and check that character_set_database looks correct (utf8 is a good value).

comment:3 by Dimitris Glezos <dimitris@…>, 17 years ago

Resolution: worksforme
Status: newclosed

Checked with latest SVN and the problem doesn't occur for me either. Closing as worksforme.

Note: See TracTickets for help on using tickets.
Back to Top