Jump to content

totally confused about encoding...using Korean characters


benjipie

Recommended Posts

Hi,

 

I'm building a site which will mainly be for Korean users (using PHP and MySQL) . I've built the site in English (as i planned to translate it before launch) but i'm having trouble getting the Korean characters to display on the site. I am able to read Korean characters from other pages okay but from my site i just get question marks. I have changed the collation (i think that's the right word) in the MYSQL database to use Korean characters and it accepts it okay (i can see the Korean words in the database) but PHP wont echo any Korean words, only questions marks. I've been reading a book about encoding but i'm totally confused. I'm using utf-8 but I've also tried euc-kr (i think that's the one - i'm not on my home computer) and still no luck...

 

 

What am i doing wrong?

 

I'm using Dreamweaver CS4 and Windows 7

 

 

Thanks for any help

 

Ben.

Link to comment
Share on other sites

You should have everything UTF-8. Try adding this to your meta tags, on the page you're trying to display the characters:

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

 

Also, Make sure when you enter the characters in the first place, such as in a text editor etc.. It's UTF-8 and not another encoding, as this will cause incompatabilities. You can convert to UTF-8 using utf_encode or iconv I believe..

 

You may also need to set a header to tell it it's utf-8.. I just had to do that to allow them to be displayed, not much else really..

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.