Is it possible to convert a string encoding from big5 to utf-8? I try to use
BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream("big5"), "BIG5")); to read the big5 strings and then use
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("utf8"), "UTF8"));
to output the strings into a file called "utf8". The encoding of the strings in the file is correctly utf-8.
What I want to do is to insert UTF-8 strings into oracle9i db. I try to read the strings from the file "utf8" by the above method and insert them into the db directly and "????????" is resulted. I also convert big5 strings into byte with utf8 encoding and then convert them into String with specification utf8. The same thing is resulted.
Is there any method provided to me so that I can properly insert utf-8 strings into the oracle 9i db. Thx.