Doublecheck that you actually have properly encoded data in the
database ('show table X' should tell you the encoding of the table
itself). Often 'displaying correctly' is misleading because of the
possibility of making the same encoding mistake both ways (=treat
mysql as binary storage). The other common problem is that you might
be double-encoding (see the length of utf-8 chars -> if they are 4 or
more, you're encoding already encoded data).

On Jul 12, 9:49 pm, max <dulip.withan...@gmail.com> wrote:
> I am implementing a search application using web2py.
> I get the data from a  mysql data base where the data is inserted in
> utf-8.
> But when i access the data using web2py  connection data is not
> displayed correctly.
> I am sure, the mysql data is correctly encoded as other applications
> accessing the same data show them correctly.
> Some hints in this usergroup such as
> #!/usr/bin/env python
> # -*- coding: UTF-8 -*
> in the default.py didn't help me.
> max
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to