Oh! Thanks for reminding. Yes, InputStream is known bug in JDK, I should have known it, I saw it in the JSCP Exam book. Actaully, I first use FileReader, and discovered that all my inserted documents just contains “?”, so I switch to InputStreamReader and specify with a “big5” encoding, I can see most of my characters then.
The unbelievable is, my HD totally damaged yesterday. I have a new HD then, and load w2k from our image server, that means all environment (and encoding) is the same. God, use FileReader works now, everything works now. Although I’m not dare to say I havn’t made anything wrong in my last environment, while all the code(s) are the same (since my HD total lost, I download big5.zip in my previous post and change to use FileReader), it works now, programming is so … recondite sometimes.
doc.readFrom( new InputStreamReader(new FileInputStream(filename), “big5”) );
→
doc.readFrom( new FileReader( new File(filename) ) );
Thank you very much Christian!
#API-Management#webMethods#webMethods-Tamino-XML-Server-APIs