
April 12th, 2004, 01:14 PM
|
|
Registered User
|
|
Join Date: Apr 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
XML Parsing
Hello
I have a XML file which contains some special characters like 'ý', 'ý' and &. My java program parses the special characters and replaces them with #xA2;( for cent),When i run it in the unix box, the cent symbol is being interpreted as '?'.Whereas when i run the same code in Windows machine, it is being interpreted as cent and is working fine.Can u please tell me why the specific code is not working in Unix box but working in Windows. I would really appreciate if i get some very quick replies.
InputSteam is = new FileInputStream("some.xml");
BufferedReader br = new BufferedReader(new InputStreamReader(is));
while ((line = br.readLine())!= null) {
if(line.indexOf('\u00A2')!=-1) {
System.out.println(" cent found" );
}
Thanks a lot
I have posted in various forums but didnt get any response..Pls help me
|