![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: OT? Character set issues with MySQL/CGI::Applicationby Corion (Pope) |
on Jul 25, 2008 at 06:49 UTC ( #700036=note: print w/replies, xml ) | Need Help?? |
How do you know what encoding the mysql shell uses? How do you know what your console uses as encoding? How do you know what the web browser did with the encoded data before putting it into the clipboard? You need to eliminate as many conversion steps as possible and check the consistency of the remaining. I wouldn't rely on MySQL to upgrade or change the encoding. Use If Encode::decode() works, then likely your data is in UTF8 when you retrieve it from MySQL. If it already is in UTF8 when you put it in, it could be an idea to keep all data in UTF8 throughout your application and just convert at the output stage to Latin1. Update: moritz pointed out that I want Devel::Peek, not Scalar::Util
In Section
Seekers of Perl Wisdom
|
|