i am using the django 1.0 , and while i am try to post some data (japanes ,chinese characters) and insert to my Mysql db , i got this error . my table is create in utf8 character , and my setting.py already has the DEFAULT_CHARSET = 'utf-8' ,
where going wrong ?? i am getting MAD in this . HELP! Environment: Django Version: 1.0-final-SVN-unknown Python Version: 2.4.3 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.admin', 'mytest.shaft'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware') Traceback: File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.4/site-packages/django/contrib/admin/sites.py" in root 158. return self.model_page(request, *url.split('/', 2)) File "/usr/lib/python2.4/site-packages/django/views/decorators/ cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/usr/lib/python2.4/site-packages/django/contrib/admin/sites.py" in model_page 177. return admin_obj(request, rest_of_url) File "/usr/lib/python2.4/site-packages/django/contrib/admin/ options.py" in __call__ 191. return self.add_view(request) File "/usr/lib/python2.4/site-packages/django/db/transaction.py" in _commit_on_success 238. res = func(*args, **kw) File "/usr/lib/python2.4/site-packages/django/contrib/admin/ options.py" in add_view 502. self.save_model(request, new_object, form, change=False) File "/usr/lib/python2.4/site-packages/django/contrib/admin/ options.py" in save_model 376. obj.save() File "/usr/lib/python2.4/site-packages/django/db/models/base.py" in save 307. self.save_base(force_insert=force_insert, force_update=force_update) File "/usr/lib/python2.4/site-packages/django/db/models/base.py" in save_base 379. result = manager._insert(values, return_id=update_pk) File "/usr/lib/python2.4/site-packages/django/db/models/manager.py" in _insert 138. return insert_query(self.model, values, **kwargs) File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in insert_query 888. return query.execute_sql(return_id) File "/usr/lib/python2.4/site-packages/django/db/models/sql/ subqueries.py" in execute_sql 308. cursor = super(InsertQuery, self).execute_sql(None) File "/usr/lib/python2.4/site-packages/django/db/models/sql/query.py" in execute_sql 1700. cursor.execute(sql, params) File "/usr/lib/python2.4/site-packages/django/db/backends/util.py" in execute 19. return self.cursor.execute(sql, params) File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/ base.py" in execute 83. return self.cursor.execute(query, args) File "build/bdist.linux-i686/egg/MySQLdb/cursors.py" in execute 151. query = query % db.literal(args) File "build/bdist.linux-i686/egg/MySQLdb/connections.py" in literal 247. return self.escape(o, self.encoders) File "build/bdist.linux-i686/egg/MySQLdb/connections.py" in unicode_literal 185. return db.literal(u.encode(unicode_literal.charset)) Exception Type: UnicodeEncodeError at /admin/shaft/clothes/add/ Exception Value: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---