it's almost always better to have all utf-8 encoded strings marked and use the :utf8 IO layers
Good point
trying to insert a $string into a utf-8 column will not work correctly if the $string is in the default 8-bit encoding with the high bit set (for instance, when $string is in Latin-1 with accented characters)
I think I understand - is this what you mean:
Would using $string = Encode::decode_utf8($string) $string = Encode::decode('iso-8859-1',$string) also work in this case?
Clint
Update - corrected decode
In reply to Re^4: A UTF8 round trip with MySQL
by clinton
in thread A UTF8 round trip with MySQL
by clinton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |