okay, here is my situation. im currently working for a japanese company who asked me to migration part of their data from access(.mdb) to mysql. everything worked out for me except when i opened the mysql table, it had some ? data instead showing the japanese characters correctly. i set my mysql table to support UTF-8 and my question is how i convert the japanese characters(i dont know which unicode i should pick for the japanese either. Shift-JIS?) to UTF-8 correctly
First you have to identify the problem, which is usually one of two things:
1) Lack of font support
2) An encoding error
Since you are getting question marks and not a string of random nonsense, I am going to guess that the problem here is not encoding, but fonts. But I have no idea what software you are using to do any of this, on what platform, with what support.
Drake
I have never worked with RMDBs, encoding, and Java in unison so sadly I do not really know how encoding is handled in that world. I only use it with files, where InputStreamReader and OutputStreamWriter, properly instantiated with the right character set, solve all my problems. There must be a similar solution in your case.
I.e. before you start trying to get all clever with byte arrays and doing math on their contents, see if there aren't some stream classes that can do this for you. I would be very surprised if there were not.
Drake