Encountered the same issue, removing 'str()' and it worked. Thanks

在 2012年2月16日星期四UTC+8下午10时59分28秒,sherdim写道:
>
> 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 
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to