in reply to A UTF8 round trip with MySQL
update: really, don't use any lower version for this - 4.003 and 4.004 contain some important utf8 fixes
In other words, you should probably not use encode_utf8() on query results. Especially since that discards the utf8 flag.
INSERTing data into utf-8 columns is trickier. As far as I know you still need to make sure the data is really utf-8 encoded. You can use utf8::upgrade() for that.
Do not use methods (like encode_utf8()) that convert to utf-8 but don't set the utf-8 flag for this purpose, since if/when this issue in DBD::mysql gets fixed, those methods will not work correctly.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: A UTF8 round trip with MySQL
by clinton (Priest) on Jun 13, 2007 at 08:26 UTC | |
by Joost (Canon) on Jun 13, 2007 at 10:41 UTC | |
by clinton (Priest) on Jun 13, 2007 at 11:01 UTC | |
by Joost (Canon) on Jun 13, 2007 at 11:28 UTC | |
by clinton (Priest) on Jun 13, 2007 at 11:50 UTC | |
| |
Re^2: A UTF8 round trip with MySQL
by Anonymous Monk on Jul 25, 2013 at 13:34 UTC |