[web2py] Re: Using jquery and ajax to change form input fields

2017-01-28 Thread Morganti
Hi, I am using scaffolding application as the base of the development.. There is charset='utf-8' in the layout.html extended to my view and I added chartset in the > Hi! > it seems that there isn't in the of your > html or $.ajax *contentType* settings are changed from 'utf-8' to > 'l

[web2py] Re: Using jquery and ajax to change form input fields

2017-01-28 Thread Val K
Hi! it seems that there isn't in the of your html or $.ajax *contentType* settings are changed from 'utf-8' to 'latin-1' On Saturday, January 28, 2017 at 4:07:32 PM UTC+3, Morganti wrote: > > Hi, > > Your suggestion was not enouth, still not running, but, I used the idea > and studied

[web2py] Re: Using jquery and ajax to change form input fields

2017-01-28 Thread Morganti
Hi, Your suggestion was not enouth, still not running, but, I used the idea and studied more and got the solution. repr(x.decode('utf-8)').encode('latin_1')) where x=session.cep['logradouro'] Thanks a lot your helping. Best regards Em sexta-feira, 27 de janeiro de 2017 19:36:24 UTC-2, Val K

[web2py] Re: Using jquery and ajax to change form input fields

2017-01-27 Thread Val K
str() - doesn't work with uincode - try unicode(session.cep['logradouro']) or unicode(session.cep['logradouro'], 'utf-8') On Friday, January 27, 2017 at 11:51:49 PM UTC+3, Morganti wrote: > > Hi, > > I just using web2py book. > > Using that example jQuery and Ajax am getting the population of

[web2py] Re: Using jquery and ajax to change form input fields

2017-01-27 Thread Morganti
Hi, I just using web2py book. Using that example jQuery and Ajax am getting the population of the fields. I changed all code above sent. But, now, I am having problems with utf-8. I mean, when I received any data with special character like 'á' or 'ç', the data is not putting in the field Th

[web2py] Re: Using jquery and ajax to change form input fields

2017-01-27 Thread Val K
you do an *ajax *request and *immediately * try to use ajax-results On Friday, January 27, 2017 at 5:48:59 PM UTC+3, Morganti wrote: > > Hi guys, > > I have some extra felds no auth_user. I need to complete some fields after > one filled in. > > I am able to read this field using jquery..blur and