DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Benoit has posted 48 posts at DZone. View Full User Profile

Some Problems With Charset In UTF-8 ?

11.23.2007
| 7058 views |
  • submit to reddit
        So you can use this request MySQL before all others, for fix your problems :
...
mysql_query( "SET NAMES 'utf8' " );
...

<a href="http://www.ab-d.fr/">Source: ab-d.fr
Languages: PHP and MySQL</a>