I Think it is a bug  as for 1.99.4
When a form "tries" to keep values w/ non ascii characters

    if form.accepts(request.vars,session, formname=sP, keepvalues=True):
  File "C:\a\w2p\gluon\html.py", line 1801, in accepts
    status = self._traverse(status,hideerror)
  File "C:\a\w2p\gluon\html.py", line 743, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "C:\a\w2p\gluon\html.py", line 751, in _traverse
    self._postprocessing()
  File "C:\a\w2p\gluon\html.py", line 1585, in _postprocessing
    _value = str(self['_value'])
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: 
ordinal not in range(128)


Is str instruction ever needed? If yes -  additional check for unicodes 
with proper utf-8 conversion  is needed just before.

IMHO str at 1585 is excessive - all is fine  when deleted 

Reply via email to