views:

870

answers:

2

okee, i followed all instructions i could find here and i could display all kinds of multilingual characters on my pages...
the problem is in phpmyadmin the japanese characters are replaced by question marks, as in a bunch of ???? ??? pieced together
i think there's a problem with my database's collation but i just wanted to verify that here
we've had this database set before on a default collation which is latin_swedish_ci and it already has a lot of data
now we had to add some tables that requires support for special characters...
so i definitely just couldnt set the database's collation to utf8
so my solution was to use utf8 only on the tables which required such support and the specific columns where we expected special characters to be contained..
but still phpmyadmin displayed them as ????
another question that i have is will these fields be searchable?
i mean if the field contains some japanese characters and i type'd 'sayuri' as keyword, will the japanese character equivalent to their syllables pronounced in english?
thanks so much for your kind answers and i hope they'd enlighten me alot :)

A: 

The problem is that your connection collation is not set to utf-8 (most probably latin1), which you need to display the Japanese characters. You could set it manually by issuing the queries:

SET CHARACTER SET utf8;
SET NAMES utf8;

Or in your MySQL configuration file:

default-character-set=utf8
skip-character-set-client-handshake
Eran Galperin
nope, checked that on my phpmyadmin homepage and the connection colllation is already set to utf8_unicode_ci
lock
you need to have the skip-character-set directive in your configuration file
Eran Galperin
Oh, and don't forget to restart the MySQL service after you change the configuration
Eran Galperin
+1  A: 

Mmm, as to your first question do you have Japanese fonts installed on your system? They aren't installed by default on most OSs, but I have no idea what your OS is. Next one is silly but are your Browser settings Ok?

Next question, the answer is no, if you search for 吉永 小百合 it wont' match with Yoshinaga Sayuri.

Note: Can you see my Japanese characters?

Robert Gould
yes i can see your japanese characters, in fact the first line of my question says i could display all kinds of multilingual characters on my pages... hehe peace ^-^
lock