[Zope-Checkins] CVS: Packages/ZPublisher - Converters.py:1.23.2.3 HTTPRequest.py:1.90.2.7 HTTPResponse.py:1.75.2.7

Andreas Jung andreas at andreas-jung.com
Mon Nov 8 01:49:20 EST 2004


Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv30970/lib/python/ZPublisher

Modified Files:
      Tag: Zope-2_7-branch
	Converters.py HTTPRequest.py HTTPResponse.py 
Log Message:
'latin1' -> 'iso-8859-15'


=== Packages/ZPublisher/Converters.py 1.23.2.2 => 1.23.2.3 ===
--- Packages/ZPublisher/Converters.py:1.23.2.2	Mon May 17 13:31:31 2004
+++ Packages/ZPublisher/Converters.py	Mon Nov  8 01:49:18 2004
@@ -20,7 +20,7 @@
 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)
 


=== Packages/ZPublisher/HTTPRequest.py 1.90.2.6 => 1.90.2.7 ===
--- Packages/ZPublisher/HTTPRequest.py:1.90.2.6	Wed May 19 14:00:11 2004
+++ Packages/ZPublisher/HTTPRequest.py	Mon Nov  8 01:49:18 2004
@@ -526,7 +526,7 @@
                                 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)
 


=== Packages/ZPublisher/HTTPResponse.py 1.75.2.6 => 1.75.2.7 ===
--- Packages/ZPublisher/HTTPResponse.py:1.75.2.6	Mon Apr 26 06:11:23 2004
+++ Packages/ZPublisher/HTTPResponse.py	Mon Nov  8 01:49:18 2004
@@ -433,7 +433,7 @@
                 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.



More information about the Zope-Checkins mailing list