News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Vinu Thomas' Blog:
Modifying your MySQL databases to be UTF-8 compliant
December 28, 2006 @ 07:47:00

There's a quick tip from Vinu Thomas on his blog for anyone having issues with UTF-8 data in a MySQL database (as accessed by PHP).

Most of us have had problems with UTF-8 problems in PHP and MySQL. Here's how to modify your database and table to be UTF-8 compliant. Most of the time we do set the character set to utf8 but forget to set the collation set to utf8.

He includes both SQL statements you'll need to make the transition - two ALTER statements that update the properties of a database and change the encoding on a specific table to UTF-8 compatibility.

0 comments voice your opinion now!
mysql database modify utf8 compliant alter sql statement mysql database modify utf8 compliant alter sql statement


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: PHPUnit Fundamentals: Setting Up and Tearing Down a Doctrine 2 Database

Peter Goodman's Blog: Observers and Dispatchers

Web & PHP Magazine: Issue #11 - Climate Change

Laura Thomson\'s Blog: Slides from MySQL Users Conference

Hasin Hayder's Blog: Prelude to foundation: Its time to go for a better PHP Framework


Community Events





Don't see your event here?
Let us know!


laravel zendserver community tips series release list deployment development framework api language developer conference interview threedevsandamaybe podcast introduction code symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework