How to display japanese kanji from MySQL?
Posted: Sat Oct 04, 2008 8:16 am
I`m new here and new to PHP, sorry if its impolite but I really need an answer to this problem
The point :
1. I made some string with japanese kanji and insert it to my db
2. I insert it via phpmyadmin and it works just fine (it display correctly on phpmyadmin)
3. Upon viewing it using browser the kanji character keep turning into ???
4. I`ve test using a text file (using fopen and fread) and its displayed perfectly
5. I`ve changed the collation (to utf8, sjis and euc) and change the transfer encoding but the problem persists
6. All character but those kanji character displayed correctly
What i wanna know :
1. What`s causing problem here?
2. How do I display those kanji character?
I`ve read many article but nothing seems to works. The only thing I haven`t try is mapping the kanji character which I can`t figure out how to do that and seems lengthy. And to made things worse, the PHP&MySQL manual doesn`t mention about kanji character specifically
Thanks for your attention
The point :
1. I made some string with japanese kanji and insert it to my db
2. I insert it via phpmyadmin and it works just fine (it display correctly on phpmyadmin)
3. Upon viewing it using browser the kanji character keep turning into ???
4. I`ve test using a text file (using fopen and fread) and its displayed perfectly
5. I`ve changed the collation (to utf8, sjis and euc) and change the transfer encoding but the problem persists
6. All character but those kanji character displayed correctly
What i wanna know :
1. What`s causing problem here?
2. How do I display those kanji character?
I`ve read many article but nothing seems to works. The only thing I haven`t try is mapping the kanji character which I can`t figure out how to do that and seems lengthy. And to made things worse, the PHP&MySQL manual doesn`t mention about kanji character specifically
Thanks for your attention



