Hi All,
I'm seeing a number of error tickets generated in the guts of web2py
stemming from a form.accepts() call.
File "xxxx/web2py/gluon/html.py", line 856, in _traverse
self._postprocessing()
File "xxxxx/web2py/gluon/html.py", line 1774, in _postprocessing
_value = str(self['_value'])
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position
55: ordinal not in range(128)
The character in question appears to be a UTF-8 ellipsis (...).
I thought that this may have been a browser issue - but I think now it's
just a web2py problem with text INPUTs containing
"interesting" characters - even in the values. The generated HTML looks
like:
<input id="word_name" type="text" value="<FONT FACE="Arial, serif"><FONT
SIZE=2>as/so far as … is/are concerned</font></font>" name="name">
which seems to have two issues - the double quotes in the value are not
escaped and the ellipsis (probably
ok HTML) is then going to generate the ticket I'm seeing at
str(self['_value']).
David
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.