note 90127 modified in function.mysql-set-charset by danbrown
| From: | danbrown@php.net | Date: | Tue, 07 Apr 2009 16:34:10 +0000 |
| Subject: | note 90127 modified in function.mysql-set-charset by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152909@lists.php.net to get a copy of this message | ||
Having just spent 24 hours banging my head against character sets, explicitly setting all my MySQL
databases and tables to utf-8, using mysql_set_charset(), and *still* not solving my character
display problems, I'll just remind you that htmlentities() now also takes an optional argument
to specify the character set, and that *also* needs to be set to "utf-8" to avoid grief.
--was--
Having just spent 24 hours banging my head against character sets, explicitly setting all my MySQL
databases and tables to utf-8, using mysql_set_charset(), and <b>still</b> not solving
my character display problems, I'll just remind you that htmlentities() now also takes an
optional argument to specify the character set, and that<b>also</b> needs to be set to
"utf-8" to avoid grief.
http://php.net/manual/en/function.mysql-set-charset.php