Hello, The requirement is that the characters in czech is supposed to be read and with no manipulation it has to be printed to thrown to the browser. I am using Jaxp, Crimson parser's document.parse method to parse the doc. "Document xmlDocument = DocBuilder.parse(xmlFile);" - xml file is a statc file containing the xml content in czech. The problem is that, immediately when I try to write the characters read to another file, the characters seem to be corrupted. In XML the encoding specified is ISO-8859-2(recommended/prescribed encoding type for Czech lang in w3c.org) Question is how these spcl chars need to be handled..? It will be highly appreciable if someone can come up with any suggestion inluding if it is a limitation with Crimson or with any method to solve this. Many Thanks ak
I am not sure what method you are using to write output. As a hint in the right direction, look at the class java.io.OutputStreamWriter, constructor: OutputStreamWriter( OutputStream out, String encoding ) if you supply "ISO-8859-2" as the encoding parameter, you should get the correct characters. Regards, Adam.
permaculture is giving a gift to your future self. After reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop