<!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">&nbsp; Hi All,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; Why are my French apostrophe being converted to questions marks ?</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; If I have the following input Xml document:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;record&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; &lt;description&gt;L&#8217;architecture de GI/TI &lt;/description&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;/record&gt;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; Parse the document with jdom and write it to the file system with the following format</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; Format format = Format.getCompactFormat().setEncoding(&quot;ISO-8859-1&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; XMLOutputter out = new XMLOutputter(format);</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; FileWriter f = new FileWriter(new File(filename));</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; out.output(doc, f);</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; Here is the output:</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;</FONT>

<BR><FONT SIZE=2 FACE="Arial">&lt;record&gt;&lt;description&gt;L?architecture de GI/TI&lt;/description&gt;&lt;/record&gt;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; Any help would be greatly appreciated.</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;Thanks,</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp; Andrew</FONT>
</P>

</BODY>
</HTML>