utf8 output from mysql
Posted: Fri May 20, 2011 9:43 pm
Good night everyone!
I am trying to port my website and cms from tomcat/java to dragonfly/newlisp. The site is in Russian (cyrillic), so the problem: when I retrieve data from mysql database and print it through dragonfly's view I get this: "\208\148\208\183\195\166\209\131\208\180\208\182\209\139\209\133\209\138\195\166\209\131" instead of "Дзæуджыхъæу" (as an example).
I use mysql.lsp module of newlisp. The default encoding of mysql database is utf8, encoding of page in browser is also utf8. The same result (two-byte code in numbers, but not symbols themeselves) I have got when I used postgresql database with postgres.lsp.
My question is: did I miss something very trivial, or I will have to change mysql.lsp in some way?
If you can give me some hint? Thank you in advance!
Denis
I am trying to port my website and cms from tomcat/java to dragonfly/newlisp. The site is in Russian (cyrillic), so the problem: when I retrieve data from mysql database and print it through dragonfly's view I get this: "\208\148\208\183\195\166\209\131\208\180\208\182\209\139\209\133\209\138\195\166\209\131" instead of "Дзæуджыхъæу" (as an example).
I use mysql.lsp module of newlisp. The default encoding of mysql database is utf8, encoding of page in browser is also utf8. The same result (two-byte code in numbers, but not symbols themeselves) I have got when I used postgresql database with postgres.lsp.
My question is: did I miss something very trivial, or I will have to change mysql.lsp in some way?
If you can give me some hint? Thank you in advance!
Denis