[Zope-CMF] Weird UnicodeDecodeError with zope.formlib

Charlie Clark charlie.clark at clark-consulting.eu
Thu Nov 29 10:52:13 UTC 2012


Am 29.11.2012, 09:43 Uhr, schrieb Charlie Clark  
<charlie.clark at clark-consulting.eu>:

> No. I guess I'll have to look more closely at the wigdets data. As I  
> said a different site on the same machine doesn't exhibit these problems  
> so I should have a point of comparison.

Definitely weird. From site 1:

(Pdb) t = self.widgets['town']
(Pdb) t._getFormInput()
u'D\xfcsseldorf'

as expected but from site 2:

(Pdb) t = self.widgets['town']
(Pdb) t._getFormInput()
'D\xc3\xbcsseldorf'

Note the similarity of the field name as one of these forms started out as  
a copy of the other. Need to check what is causing this. I think I might  
have set a default encoding for Zope to UTF8 ostensibly to reduce IE /  
Safari errors. Oh, isn't this fun!

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226


More information about the Zope-CMF mailing list