Submitted by : simon at: 2009-10-24T17:32:22-07:00 (8 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Unicode content seems to break the ZMI edit form. Eg gives:

 Module ZPublisher.Publish, line 127, in publish
 Module ZPublisher.mapply, line 77, in mapply
 Module ZPublisher.Publish, line 47, in call_object
 Module Shared.DC.Scripts.Bindings, line 324, in __call__
 Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
 Module App.special_dtml, line 185, in _exec
 Module DocumentTemplate.DT_With, line 78, in render
 Module DocumentTemplate.DT_Let, line 77, in render
UnicodeEncodeError: 'ascii' codec can't encode characters in position 908-937: ordinal not in range(128)

See also #1459.

fixed in darcs --simon, Thu, 29 Oct 2009 00:31:52 -0700 reply

Parts of Zope aren't yet fully unicode-aware. This part of DTML breaks if __str__ returns a unicode string. To keep code like that working, zwiki pages now guarantee that self.__unicode__() will be a unicode string and self.__str__() will be an encoded string (currently hardcoded to utf-8).

... --simon, Thu, 29 Oct 2009 00:32:03 -0700 reply

Status: open => closed