This repository was archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
Encoding issues when posting an answer #4
Copy link
Copy link
Open
Description
When attempting to post an answer to this question:
http://reportingon.com/questions/104/alguien-sabe-de-acuerdo-a-las-...
The answer was:
"Not sure about statistics, but the organization that manages traffic /
distribution issues is the DEA: http://www.usdoj.gov/dea/index.htm"
Traceback:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line
86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/views/decorators/http.py",
line 31, in inner
return func(request, *args, **kwargs)
File
"/usr/lib/python2.5/site-packages/django/contrib/comments/views/comments.py",
line 110, in post_comment
request = request
File "/usr/lib/python2.5/site-packages/django/dispatch/dispatcher.py", line
148, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/admin/django-projects/reportingon/signals.py", line 13, in
question_has_new_answer
subject = "[ReportingOn] Your question has a new answer from %s! (%s)" %
(comment.user_name, str(question))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0:
ordinal not in range(128)
,
POST:,
COOKIES:{'__qca': '1225738810-29266948-87934827',
'__utma': '26554558.1783763678135163100.1245251993.1247107612.1247172505.46',
'__utmb': '26554558.2.10.1247172505',
'__utmc': '26554558',
'__utmz':
'26554558.1247172505.46.8.utmcsr=nicksergeant.com|utmccn=(referral)|utmcmd=refer
ral|utmcct=/',
'sessionid': 'a369717875c2331725611aa1b3ded5a1'},
META:{'AUTH_TYPE': None,
'CONTENT_LENGTH': 0L,
'CONTENT_TYPE': None,
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_CONNECTION': 'close',
'HTTP_CONTENT_LENGTH': '447',
'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded',
'HTTP_COOKIE':
'__utma=26554558.1783763678135163100.1245251993.1247107612.1247172505.46;
__utmz=26554558.1247172505.46.8.utmcsr=nicksergeant.com|utmccn=(referral)|utmcmd
=referral|utmcct=/;
sessionid=a369717875c2331725611aa1b3ded5a1;
__qca=1225738810-29266948-87934827; __utmc=26554558;
__utmb=26554558.2.10.1247172505',
'HTTP_HOST': 'reportingon.com',
'HTTP_REFERER':
'http://reportingon.com/questions/104/alguien-sabe-de-acuerdo-a-las-...,
'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US;
rv:1.9.1) Gecko/20090624 Firefox/3.5',
'HTTP_X_FORWARDED_FOR': '129.21.38.99',
'HTTP_X_MAGIC_HEADER': 'secret',
'HTTP_X_REAL_IP': '129.21.38.99',
'PATH_INFO': u'/answers/post/',
'PATH_TRANSLATED': None,
'QUERY_STRING': None,
'REMOTE_ADDR': '127.0.0.1',
'REMOTE_HOST': None,
'REMOTE_IDENT': None,
'REMOTE_USER': None,
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': '',
'SERVER_NAME': 'beta.reportingon.com',
'SERVER_PORT': 0,
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'mod_python'}>
Priority → NormalCategory → BugAssignee → Pete Karl
Original issue reported on code.google.com by intellin...@gmail.com on 13 Jul 2009 at 1:55
Reactions are currently unavailable