Commit 117955fb authored by Andreas Jung's avatar Andreas Jung

'latin1' -> 'iso-8859-15'

parent 2f9bf4bd
......@@ -20,7 +20,7 @@ from cgi import escape
def field2string(v):
if hasattr(v,'read'): return v.read()
elif isinstance(v,UnicodeType) :
return v.encode('latin1')
return v.encode('iso-8859-15')
else:
return str(v)
......
......@@ -522,7 +522,7 @@ class HTTPRequest(BaseRequest):
if hasattr(converter,'convert_unicode'):
item = converter.convert_unicode(item)
else:
item = converter(item.encode('latin1'))
item = converter(item.encode('iso-8859-15'))
else:
item=converter(item)
......
......@@ -444,7 +444,7 @@ class HTTPResponse(BaseResponse):
encoding = match.group(1)
return body.encode(encoding)
# Use the default character encoding
return body.encode('latin1','replace')
return body.encode('iso-8859-15','replace')
def setBase(self,base):
"""Set the base URL for the returned document.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment