Hello, first salute all those who belong to this group and thanks in 
advance. 

I have a question that I've been trying to solve: 
I'm using web2py for a project and one of the drivers I have to detect the 
characters of a string as parameter to pick the url.

The problem is that I need a text encoding "latin1" ex: "raíz".

 then I call:  URL / application? Text = raíz

text = request.vars.text 

return text => raíz
return text[0] => r
return text [2] =>�

when return the character string in the position, I returned that 
character, but return the entire string, encoding it well

I try request.vars.text.decode('latin1')

but return: 
return text [2] =>Ã

What solution can give me to show either that character? I need the number 
of encoding types with ord () but always goes 195 for any character with an 
accent, because it gives this error.

excuse my writing, I'm Spanish, thanks!




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

Reply via email to