[Mono-list] Encoding problems ... more details

Louis-Simon Houde houdelou@hotmail.com
Mon, 18 Apr 2005 13:05:52 -0400


<html><div style='background-color:'><DIV class=RTE>Sorry for not giving enough information.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I have mono 1.0.6 and Apache 1.3.31 (comes with Slackware 10.0).</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I want this page to be displayed correcty :</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&lt;%@ language="C#" EnableSessionState="false" AutoEventWireup="false" %&gt;</DIV>
<DIV class=RTE>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;<BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;meta http-equiv="Content-Type" content="text/html; charset=iso8859-1"&gt;<BR>&lt;head&gt;<BR>&lt;body style="font-family:arial;font-size:8pt"&gt;<BR>téléphone<BR>&lt;/body&gt;<BR>&lt;/html&gt;</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I tried to set the globalization setting in the webapp.config and machine.config like this :</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&lt;globalization&nbsp; requestEncoding="iso8859-1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; responseEncoding="iso8859-1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fileEncoding="iso8859-1"</DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; culture="en-US"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uiculture="en-US" /&gt;<BR></DIV>
<DIV class=RTE>First I try to set it in the machine.conf and then in the webapp.config file.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>None of the above worked.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>So then, I tried to remove those lines from both files.&nbsp; </DIV>
<DIV class=RTE>Now it works but I don't understand why we can't set it in those files.&nbsp; ( Maybe now it uses Apache's default encoding settings ?? ).&nbsp; By default, the globalization tag in the machine.conf file is set to utf-8.&nbsp; I have to remove this line to work properly.</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Thanks</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Louis<BR></DIV>
<DIV class=RTE><BR>&nbsp;</DIV></div></html>