Question is off. I recreated all tables with utf8 charset. It helped.

On Apr 3, 3:37 pm, "Calumet" <[EMAIL PROTECTED]> wrote:
> I can't save utf data to database in admin and shell. In tutorial
> application
>
> Warning at /admin/polls/poll/4/
> Data truncated for column 'question' at row 1
>
> Last two calls:
> --
> /usr/lib/python2.4/site-packages/MySQLdb/cursors.py in execute
> self._warning_check()
>
> ListType        <type 'list'>
> TupleType       <type 'tuple'>
> args    ['lalala \xd1\x84\xd1\x8b', '2007-04-08 23:32:04', '4']
> charset         'utf8'
> db      <weakproxy at 0xb6ded07c to Connection at 0x83c072c>
> exc_info        <built-in function exc_info>
> query   "UPDATE `polls_poll` SET `question`='lalala
> \xd1\x84\xd1\x8b',`pub_date`='2007-04-08 23:32:04' WHERE `id`='4'"
> r       0L
> self    <MySQLdb.cursors.Cursor object at 0xb6e3010c>
>
> /usr/lib/python2.4/site-packages/MySQLdb/cursors.py in _warning_check
> warn(w[-1], self.Warning, 3)
>
> self    <MySQLdb.cursors.Cursor object at 0xb6e3010c>
> w       ('Warning', 1265L, "Data truncated for column 'question' at row 1")
> warn    <function warn at 0xb7e28a74>
> warnings        (('Warning', 1265L, "Data truncated for column 'question' at
> row 1"),)
> --
>
> Data in POST
> question        'lalala \xd1\x84\xd1\x8b'
>
> Django 0.96
> MySQL 5.0.24
>
> I updated some data manually. Admin displays utf text incorrectly.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to