R
rookie
Hello,
I have been struggling this problem for couple of days and I cannot
really figure out a proper way to handle. I appreciate for your great
help.
Basically, I would like to read the Japanese kanji from the xml file in
my (UF8 format) and save it into Sybase table which is SJIS format. And
I have the following code :
public void setinstructions (java.lang.String newinstructions) {
byte[] utf8_bytes = null;
try {
utf8_bytes = newinstructions.getBytes("UTF-8");
instructions = new String(utf8_bytes, "SJIS");
} catch (UnsupportedEncodingException e) { System.out.println(e); }
}
The above code failed to convert the UTF8 kanji into SJIS. It also
falied to save (insert) into the Sybase table as SJIS (the coding for
the Sybase is iso_1, I talked to DBA for this information).
Can someone share some experience with me ?
Thanks
Rookie
I have been struggling this problem for couple of days and I cannot
really figure out a proper way to handle. I appreciate for your great
help.
Basically, I would like to read the Japanese kanji from the xml file in
my (UF8 format) and save it into Sybase table which is SJIS format. And
I have the following code :
public void setinstructions (java.lang.String newinstructions) {
byte[] utf8_bytes = null;
try {
utf8_bytes = newinstructions.getBytes("UTF-8");
instructions = new String(utf8_bytes, "SJIS");
} catch (UnsupportedEncodingException e) { System.out.println(e); }
}
The above code failed to convert the UTF8 kanji into SJIS. It also
falied to save (insert) into the Sybase table as SJIS (the coding for
the Sybase is iso_1, I talked to DBA for this information).
Can someone share some experience with me ?
Thanks
Rookie