Perl Monk, Perl Meditation | |
PerlMonks |
Re: Can't write cyrillic to DBD::mysqlby Xilman (Hermit) |
on Jun 29, 2010 at 10:28 UTC ( [id://847087]=note: print w/replies, xml ) | Need Help?? |
I'm not sure what is going wrong, and my experience with a DB holding non-ASCII characters is with Postgres and with Greek characters. Accordingly I can't give you answers but can recommend a few things which may help you with your debugging. What is the value of $sql when you execute the third command? Are you absolutely certain it contains UTF8 encoded Cyrillic characters? If you read a Cyrillic string from your DB and then write it back to another location, does it get corrupted? Is it only Cyrillic which is giving problems, or do other characters outside code page zero? (My guess is that they won't work either; try experimenting with Greek, Korean, or the like.) Good luck! Paul
In Section
Seekers of Perl Wisdom
|
|