Re: [PHP] inserting utf8 from PHP to MySQL makes text unreadable [SOLVED]

2005-02-01 Thread Dave
Marek, Thank you for your advice. I've wrapped my variable like so: htmlspecialchars( $HTTP_POST_VARS['introJ'], ENT_COMPAT, "UTF-8") and that seems to have made the variables store and display okay. I actually have no idea what the "ENT_COMPAT" bit is doing, but experimentation has taug

Re: [PHP] inserting utf8 from PHP to MySQL makes text unreadable

2005-02-01 Thread Marek Kilimajer
Dave wrote: PHP General, The Situation: I am creating a form for users to enter text into a MySQL 3.23 database. The text is often in Japanese, encoded in utf-8 format. The Problem: When the utf-8 encoded text is inserted into the database, it becomes random ASCII gibberish. What

[PHP] inserting utf8 from PHP to MySQL makes text unreadable

2005-01-31 Thread Dave
PHP General, The Situation: I am creating a form for users to enter text into a MySQL 3.23 database. The text is often in Japanese, encoded in utf-8 format. The Problem: When the utf-8 encoded text is inserted into the database, it becomes random ASCII gibberish. What I've Tried