posted 23 years ago
here is the xml document:
<?xml version='1.0' encoding='us-ascii'?>
<!-- The first xml document -->
<CustomerInfo
Source="Internal"
>
<username></username>
<emailid></emailid>
<name title="Ms.">
<LastName>Rai</LastName>
<FirstName>Aishwaria</FirstName>
</name>
<address type="shipping">
<streetleveldetail> 123 Rajdil Lane, Chowpatty</streetleveldetail>
<city>Mumbai</city>
<postalcode>22222</postalcode>
<countrycode>IN</countrycode>
</address>
<item/>
<item/>
</CustomerInfo>
the problem was solved when i changed the line in the parsing application from:
out = new OutputStreamWriter (System.out, "USASCII");
to
out = new OutputStreamWriter (System.out, "UTF8");
it's working but i'm totally confused on this encoding bit.
what am i missing?
jb
[This message has been edited by Jay Brown (edited February 07, 2001).]