benjipie Posted December 8, 2009 Share Posted December 8, 2009 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. Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 8, 2009 Share Posted December 8, 2009 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.