FYI I get the same problem on Ubuntu 10.04 LTS: Traceback (most recent call last): File "server/manage.py", line 11, in <module> execute_manager(settings) File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager utility.execute() File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/core/management/base.py", line 219, in execute self.validate() File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/core/management/base.py", line 249, in validate num_errors = get_validation_errors(s, app) File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/core/management/validation.py", line 102, in get_validation_errors connection.validation.validate_field(e, opts, f) File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/db/backends/mysql/validation.py", line 14, in validate_field db_version = self.connection.get_server_version() File "/home/user/.ve_config/myproject/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 314, in get_server_version m = server_version_re.match(self.connection.get_server_info()) File "/opt/google_appengine/google/storage/speckle/python/api/rdbms.py", line 733, in get_server_info response = self.MakeRequest('GetMetadata', request) File "/opt/google_appengine/google/storage/speckle/python/api/rdbms.py", line 604, in MakeRequest response = self._MakeRetriableRequest(stub_method, request) File "/opt/google_appengine/google/storage/speckle/python/api/rdbms.py", line 628, in _MakeRetriableRequest response = self.MakeRequestImpl(stub_method, request) File "/opt/google_appengine/google/storage/speckle/python/api/rdbms_googleapi.py", line 210, in MakeRequestImpl response = getattr(self._client, stub_method)(request) File "/opt/google_appengine/google/storage/speckle/python/api/rdbms_googleapi.py", line 135, in GetMetadata 'jdbc/getMetadata', request, sql_pb2.MetadataResponse) File "/opt/google_appengine/google/storage/speckle/python/api/rdbms_googleapi.py", line 157, in _MakeRequest return request.execute() File "/opt/google_appengine/lib/google-api-python-client/apiclient/http.py", line 86, in execute headers=self.headers) File "/opt/google_appengine/lib/google-api-python-client/oauth2client/client.py", line 483, in new_request redirections, connection_type) File "/opt/google_appengine/lib/httplib2/httplib2/__init__.py", line 1445, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/opt/google_appengine/lib/httplib2/httplib2/__init__.py", line 1197, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/opt/google_appengine/lib/httplib2/httplib2/__init__.py", line 1134, in _conn_request conn.request(method, request_uri, body, headers) File "/opt/lib/python2.7/httplib.py", line 946, in request self._send_request(method, url, body, headers) File "/opt/lib/python2.7/httplib.py", line 987, in _send_request self.endheaders(body) File "/opt/lib/python2.7/httplib.py", line 940, in endheaders self._send_output(message_body) File "/opt/lib/python2.7/httplib.py", line 801, in _send_output msg += message_body UnicodeDecodeError: 'ascii' codec can't decode byte 0xf8 in position 26: ordinal not in range(128)
This happens when I "manage.py syncdb" to the Google SQL Cloud. On Thursday, March 3, 2011 7:48:21 AM UTC+1, vev...@yandex.ru wrote: > > Good morning! > In me first exercise project with Django I met an error message: > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position > 0: ordinal not in range(128). Admin pages are built without css. > Then I changed all .py-files entering > # -*- coding: utf-8 -*- > into the first row and recreated database: > ALTER DATABASE `djangodb` DEFAULT CHARACTER SET utf-8 COLLATE > utf8_unicode_ci > I also tryed COLLATE utf8_swedish_ci. Then I recreated tables with > manage.py syncdb. > No effect. Is this a typical problem of Django beginners? > I need only russian and english languages in my projects endeed. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/O0MPhdjbemQJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.