huh, I only have a stupid modus:
On debugging, watch the string on the ide. If the value of the string is what you need, then the encoding of the string is your local encoding.
more time-consuming modus is : get the code the string as '0x348A' and search the code table of BIG5, then check it as what you need.
that is the HEX format of one word's byte[ ]. The '0x348A' is only a example.
e.g:
byte[] bs = "云".getBytes();
for(byte b : bs){
int n = b & 0xff ;
String s = Integer.toHexString(n);
if(s.length() == 1){
s = "0" + s;
}
System.out.println(s);
}
If you have a String in Big5 in the database and the database is set to use Big5 as it's encoding correctly, then all you need to do is get it as a String from a resultset.
By then it will be in the memory as UTF-16 and you can write it out in any encoding you want in the standard way (using OutputStreamWriter).