You didn't list the code used to create the 'writer'. I think xerces gets the encoding from the DocumentFormat (which I think defaults to UTF-8), but there is no check that this matches the encoding you used to create the writer. As Paul Brown has just posted, FileWriter defaults to the platform encoding which is usually not UTF-8.
> -----Original Message----- > From: Scott Moore [mailto:[EMAIL PROTECTED] > Sent: 23 May 2002 16:28 > To: '[EMAIL PROTECTED]' > Subject: RE: Escaping ● > > > [snip] > > b) assume that the user will choose an encoding which contains all the > characters they use. Many people use UTF-8 for this reason > --- it supports > all characters. > > > Thanks for the reply. When the file is output using a FileWriter, the > following XML declaration is placed at the top of the file: > > <?xml version="1.0" encoding="UTF-8"?> > > Doesn't this mean it was output in UTF-8? If that's not the > case, how do I > specify the encoding? > > Thanks, > Scott > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
