News Feed
Jobs Feed
Sections




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

Felix Geisendorfer's Blog:
Enforce utf8 for multiple db connections
November 12, 2007 @ 12:55:00

Felix Geisendorfer has another quick CakePHP tip - an update from a previous tip for forcing utf8 connections on multiple databases:

This is just a quick update for Dessert #6 - MySql & UTF-8. I've been using the approach outlined in that old post pretty much until today, when I realized that it has two major flaws: It does not work when using multiple db connections (i.e. using load balancing or connecting to a 3rd party db), and it might interfere with other databases that don't need this utf8 thing to be set.

He includes some code (a quick 13 liner) to take care of this small issue. Check out the comments on the post for an even easier way too.

0 comments voice your opinion now!
caekphp framework multiple database connection utf8 encoding caekphp framework multiple database connection utf8 encoding


blog comments powered by Disqus

Similar Posts

Paul Jones' Blog: Universal Constructor Sighting "In The Wild"

Codewalkers.com: New Things on the Tutorial Front (Pagination & Ajax)

Marco Tabini\'s Blog: $fud- - (Zend Framework Webcast)

Sanisoft Blog: Radio button issues while migrating from cakePHP-1.2alpha app to 1.2prebeta

Christian Wenz's Blog: WSO2 Web Services Framework (WSF)/PHP v1.0.0 Released


Community Events











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


introduction security database facebook install symfony2 example framework performance component composer package language hack project unittest hhvm podcast release application

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