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

Chris Withers chris at simplistix.co.uk
Fri Nov 19 07:06:20 EST 2004


Andreas Jung wrote:
> 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)

Should this really be hard coded at all?

http://collector.zope.org/Zope/1490

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope-Dev mailing list