Jump to content

Character Set Setup


shane18

Recommended Posts

I'm trying to make my php files connect to my mysql server using UTF-8, and I want all my data stored in UTF-8 and I want my mysql server fully in UTF-8...

 

+so far i got all my databases, tables, columns in utf8_unicode_ci

-to make data stored in utf8

 

+and i use mysql_query("SET NAMES 'utf8'");

-to connect from my php files to mysql in utf8

 

am I missing any other steps or settings? can someone also explain how the php client and mysql interact character set wise...

 

any input from anyone would be awesome :)

Link to comment
Share on other sites

You may also want "SET CHARACTER SET 'utf8'", then obviously you just need to make sure the character encoding of the page is correct. Using either the HTML meta tag or alternatively the header function will achieve this.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.