29 Jun 20:36
Unicode in mysql issue
Alex <xktybot <at> gmail.com>
2009-06-29 18:36:55 GMT
2009-06-29 18:36:55 GMT
Hi all,
How to retreive unicode data from a mysql table with SQLObject?
When I run this code:
class Foo(SQLObject):
class sqlmeta:
fromDatabase = True
print Foo.select(Foo.q.id==55)[0].bar
...I get:
"?????????? ????????????? ???????? ?? ?????????? ?????? ? ???"
bar's type is mediumtext and collation is utf8_general_ci.
Bests,
Alex
------------------------------------------------------------------------------
RSS Feed