In my application I would prefer to use Python's *unicode* type for all 
string data. In my database I am storing strings as *utf-8* encoded. The 
problem is that when I read one of these fields using the DAL, the new 
object returned to my application is of type Python *string* rather than 
type 

*unicode.*Code inspection shows me that In web2py's dal.py source file, the 
parse_value() method explicitly converts any variables that are of type 
*unicode* to type *string* (encoded as utf-8). Why does it do so? Why not 
leave the fields as type 

*unicode?*Is there any way to tell web2py that when it reads data from the 
database I want string data returned to me as *unicode* rather than *string*
?

-- 
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/d/optout.

Reply via email to