<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>Question regarding encoding</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P><FONT SIZE=2 FACE="Arial"> Hi All,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> Why are my French apostrophe being converted to questions marks ?</FONT>
<BR><FONT SIZE=2 FACE="Arial"> If I have the following input Xml document:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> <?xml version="1.0" encoding="ISO-8859-1"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><record></FONT>
<BR><FONT SIZE=2 FACE="Arial"> <description>L’architecture de GI/TI </description></FONT>
<BR><FONT SIZE=2 FACE="Arial"></record></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> Parse the document with jdom and write it to the file system with the following format</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Format format = Format.getCompactFormat().setEncoding("ISO-8859-1"); </FONT>
<BR><FONT SIZE=2 FACE="Arial"> XMLOutputter out = new XMLOutputter(format);</FONT>
<BR><FONT SIZE=2 FACE="Arial"> FileWriter f = new FileWriter(new File(filename));</FONT>
<BR><FONT SIZE=2 FACE="Arial"> out.output(doc, f);</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> Here is the output:</FONT>
<BR><FONT SIZE=2 FACE="Arial"><?xml version="1.0" encoding="ISO-8859-1"?></FONT>
<BR><FONT SIZE=2 FACE="Arial"><record><description>L?architecture de GI/TI</description></record></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> Any help would be greatly appreciated.</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Thanks,</FONT>
<BR><FONT SIZE=2 FACE="Arial"> Andrew</FONT>
</P>
</BODY>
</HTML>