Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Niphlod
for all intents and purposes AVOID inlining content if it's meant to be a binary ^_^. Attachments are there for a reason (and also for text files 0.5 KB)... -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Yebach
I did the following. I changed the destination of database from my PC. So from my app on my local machine that works on Windows 7 I connect to Postrge database on Linux. After running it and trying to register using characters ščćž ŠČĆŽ there are no problems, also the same type of

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Ricardo Pedroso
Thank you for showing interest in resolving this. I apologize for not answering faster @Massimo - where do I set layout encoding? This is the whole error trace What you show us was not your traceback, here is your traceback, not that hard and concise and just to the point, right?

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Yebach
Thanx I removed the 'u' infront of string and it works thanx again On Wednesday, May 15, 2013 11:29:34 AM UTC+2, Ricardo Pedroso wrote: Thank you for showing interest in resolving this. I apologize for not answering faster @Massimo - where do I set layout encoding? This is

Re: [web2py] login form registration problem with encoding

2013-05-15 Thread Ricardo Pedroso
To give an explanation: when you have: mystring = 'some string encoded with some codec' myunicode = u'%s' % mystring Since you are telling python that you want a unicode object from a string object, python will try do decode (convert) `mystring` with the default encoding, since you didn't

Re: [web2py] login form registration problem with encoding

2013-05-12 Thread Massimo Di Pierro
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.

Re: [web2py] login form registration problem with encoding

2013-05-12 Thread Massimo Di Pierro
Can you please post the complete traceback? On Thursday, 9 May 2013 01:41:30 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 Stype 'exceptions.UnicodeDecodeError' 'ascii'

Re: [web2py] login form registration problem with encoding

2013-05-11 Thread dhmorgan
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

Re: [web2py] login form registration problem with encoding

2013-05-09 Thread Yebach
The problem occurs when after filling the register form user clicks register button. this is the basic problem of error (dp1 S'output' p2 Stype 'exceptions.UnicodeDecodeError' 'ascii' codec can't decode byte 0xc5 in position 2: ordinal not in range(128) p3 sS'layer' p4

[web2py] login form registration problem with encoding

2013-05-08 Thread Yebach
Hello I was scouting the internet(s) and could not found the solution for my problem 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

Re: [web2py] login form registration problem with encoding

2013-05-08 Thread Ricardo Pedroso
On Wed, May 8, 2013 at 7:24 AM, Yebach vid.og...@gmail.com 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