Is possible your layout sets an encoding other than utf8? In that case 
accepted letter would be sent in a POST as Latin1

On Saturday, 11 May 2013 23:08:14 UTC-5, dhmorgan wrote:
>
> This sounds like an interesting problem. One I have no experience with, 
> however; yet it deserves an answer.
>
> Searching this group using the query, "postgreSQL 'ascii' codec can't 
> decode" resulted in only one post other than yours. It's nearly three years 
> old, but the poster did get to a workaround ("It is kind of cheating but i 
> works.. " is how he describes it.) Perhaps that will be instructive, or 
> perhaps you have seen it already and have either ruled it out or don't know 
> how it applies to your situation.
>
> I scaled back the search query to "UnicodeDecodeError" and there were a 
> bunch more. Most of them are dated, however, which makes me wonder if this 
> is an issue relating to an older version of Web2Py.
>
> Have you solved this problem yet? If so, how? If not, which versions of 
> Web2py, PostgreSQL, and adapter, as well as some (or all) information about 
> the model, controller, and view involved?
>
> I apologize for not being able to answer your question directly, but 
> perhaps if you still need one, this will be picked up by one who knows. For 
> sure, you should address the above paragraph in order to facilitate that 
> happening.
>
> Danny
>
> On Thursday, May 9, 2013 1:41:30 AM UTC-5, Yebach wrote:
>>
>> The problem occurs when after filling the register form user clicks 
>> register button.
>>
>> this is the basic problem of error
>>
>> (dp1
>> S'output'
>> p2
>> S"<type 'exceptions.UnicodeDecodeError'> 'ascii' codec can't decode byte 
>> 0xc5 in position 2: ordinal not in range(128)"
>> p3
>> sS'layer'
>> p4
>> S'/usr/local/web2py/applications/iurnik/controllers/user.py'
>> p5
>> sS'code'
>> p6
>> S'def user():\n    form = auth()\n    #auth.settings.controller="user"\n 
>>    return dict(form=form)\n\n\nresponse._vars=response._caller(user)\n'
>> p7
>> sS'snapshot'
>> p8
>> (dp9
>> S'exception'
>> p10
>> (dp11
>> S'__getslice__'
>> p12
>> S"<method-wrapper '__getslice__' of exceptions.UnicodeDecodeError object>"
>>
>>
>> Thank you
>>
>>
>>
>> On Wednesday, May 8, 2013 1:11:26 PM UTC+2, Ricardo Pedroso wrote:
>>>
>>> On Wed, May 8, 2013 at 7:24 AM, Yebach <[email protected]> wrote: 
>>> > Hello 
>>> > 
>>> > So I am using web2py server on Linux. I also have a postgreSQL server 
>>> on 
>>> > linux and when a user tries to login via login form and uses letters 
>>> in name 
>>> > and surname such as š ž č ć  the following error appears 'ascii' codec 
>>> can't 
>>> > decode byte 0xc5 in position 0: ordinal not in range(128)" 
>>> > 
>>> > Now the same web2py code is running on windows 7 (on my computer, 
>>> including 
>>> > postgres database) and I do NOT receive that kind of error. 
>>> > 
>>>
>>> Can you make a minimal application that replicate the issue? 
>>> Can you show us the traceback? 
>>> When exactly the error happen? In the login POST request, or after it, 
>>> in the redirect 
>>>
>>

-- 

--- 
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.


Reply via email to