Can you please give me more details and a simple example to reproduce it? Is this on GAE only? Still a problem with 2.4.6?
On Monday, 8 April 2013 00:57:17 UTC-5, Spring wrote: > > 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.