[web2py] Re: Form encoding problem 'ascii' codec can't encode character..

2013-09-24 Thread David Austin
ast 'value' refers to. To me this explanation is quite different to the online book. David > > On Tuesday, 24 September 2013 02:55:38 UTC-5, David Austin wrote: >> >> Hi Massimo, >> >> Here's a simple test example: >> >> Control

[web2py] Re: Form encoding problem 'ascii' codec can't encode character..

2013-09-24 Thread David Austin
e. In any case, I reckon it should be acceptable to use unicode with _value. David On Tuesday, September 24, 2013 11:36:26 AM UTC+10, Massimo Di Pierro wrote: > > I think we need to see the source code > > On Monday, 23 September 2013 19:09:32 UTC-5, David Austin wrote: >> >&

[web2py] Re: Form encoding problem 'ascii' codec can't encode character..

2013-09-23 Thread David Austin
Word. But the important thing is that ... is the value for the text field. And that value also contains UTF-8 characters. David > > On Monday, 23 September 2013 09:00:28 UTC-5, David Austin wrote: >> >> >> Hi All, >> >> I'm seeing a number of

[web2py] Form encoding problem 'ascii' codec can't encode character..

2013-09-23 Thread David Austin
Hi All, I'm seeing a number of error tickets generated in the guts of web2py stemming from a form.accepts() call. File "/web2py/gluon/html.py", line 856, in _traverse self._postprocessing() File "x/web2py/gluon/html.py", line 1774, in _postprocessing _value = str(self['

[web2py] SQL injection and web2py - solution

2011-01-08 Thread David Austin
Hi, I think I've narrowed down the problem - web2py doesn't escape backslashes in its SQL strings. Everything I found on the web said that backslashes had to be escaped for SQL (though I couldn't confirm this with an official document). My solution is to add escaping of backslashes to the last l

[web2py] SQL injection and web2py

2011-01-08 Thread David Austin
Hi, I'm using web2py for a modest project but can't understand how web2py protects against trivial SQL injection attacks. I'm using a postgresql backend. I was trying (for legitimate reasons) to store a backslash in a text field. It appears that web2py does nothing at all with backslashes and I'm