Re: inserting utf8 from PHP to MySQL makes text unreadable [SOLVED]
| From: | Dave | Date: | Tue, 01 Feb 2005 17:31:36 +0000 |
| Subject: | Re: inserting utf8 from PHP to MySQL makes text unreadable [SOLVED] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207841@lists.php.net to get a copy of this message | ||
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 taught me that it won't fly without it.
Thanks for taking the time to help!
--
Dave Gutteridge
dave@tokyocomedy.com