http://qs321.pair.com?node_id=11122751


in reply to Re: How to avoid decoding string to utf-8.
in thread How to avoid decoding string to utf-8.

Since you still didn't reveal what you did to control encoding at the database or web level, I can only guess.

Finally, if that code only seems to work, be sure to write a test suite with Unicode data, preferably also including strings with characters which can not be encoded in one byte. Also check the contents of your database with some "non-Perl" code, like the psql command line tool for PostgreSQL or whatever your database engine provides. Without that, your database operations will always be guesswork and the next migration will most likely go wrong as well.