tschellenbach/Django-facebook — Issue #71: Unicode error
Author: kiler6
Created: 2011-12-09 16:43:17+00:00
State: open

It happens when I try to login/register using your example, maybe because my django settings are in portuguese:
Unicode error hint
The string that could not be encoded/decoded was: ndere��o de

Environment:

Request Method: GET
Request URL: http://mysite.com/facebook/connect/?facebook_login=1

Django Version: 1.3.1
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'anuncio',
'django_facebook',
'south',
'registration']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/home/kiler6/mysite.com/env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/home/kiler6/mysite.com/env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/views/decorators/csrf.py" in wrapped_view
39. resp = view_func(*args, **kwargs)
File "/home/kiler6/mysite.com/env/lib/python2.5/site-packages/Django-1.3.1-py2.5.egg/django/views/decorators/csrf.py" in wrapped_view
52. return view_func(*args, **kwargs)
File "/home/kiler6/mysite.com/env/lib/python2.5/site-packages/django_facebook/views.py" in connect
87. 'with error %s' % e

Exception Type: UnicodeDecodeError at /facebook/connect/
Exception Value: 'ascii' codec can't decode byte 0xc3 in position 3557: ordinal not in range(128)