homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderators: physics

Databases Forum

    
UTF-8 configuration for MySQL
asantos




msg:3957669
 10:16 pm on Jul 22, 2009 (gmt 0)

Hi, my db tables are UTF-8, but since i had problems retrieving some characters I added this piece of code to the header include of my API:

$cnn->execute('SET NAMES utf8');
$cnn->execute('SET CHARACTER SET utf8');

What should i do to the apache/php/mysql configuration in order to avoid those lines each time a user does a request?

 

abidshahzad4u




msg:3958274
 6:03 pm on Jul 23, 2009 (gmt 0)

Have you set this

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

I think this can overcome the problem

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved