[Mono-list] wrong encoding utf-8 - iso-8859-1

lunkwill at gmx.net lunkwill at gmx.net
Fri Oct 28 03:10:46 EDT 2005


Hi Alois,

I had the same problem with the german special characters. This seems to be
fixed with Mono 1.1.9.2. When I upgraded to Mono 1.1.9.2 all characters were
dispayed correctly without configuration or code changes. BTW changes of the
character set in web.config or the aspx-pages did not help in 1.1.8.

Unfortunally in 1.1.9 the ASP.net code didn't work as as expected
(especially DataGrid drove me mad). I think this is due to a merely rewrite
of System.Web

To benefit at least from the speed improvements of Mono 1.1.x (my
application was running on 1.0.4 until then) I installed 1.1.9 and added the
System.Web.dll from 1.1.8. After that I had the german special characters
and a working ASP.net implementation

/daniel

> --- Ursprüngliche Nachricht ---
> Von: Alois.Flammensboeck at iXTS.de
> An: mono-list at lists.ximian.com
> Betreff: [Mono-list] wrong encoding utf-8 - iso-8859-1
> Datum: Thu, 27 Oct 2005 15:30:53 +0000
> 
> Hello,
> 
> after 3 days of unsucessfully work I decided today to write a question to
> this list. I've installed mono 1.1.8 with mod_mono on a linux server.
> Everything works fine but I'm not able to create any ASP.Net pages with
german
> special chars.
> Here are the steps I'll follow:
> 
> 1. Create a asp.net page with following content in Borland Delphi 2005 and
> save it in utf-8 format:
> 
> <%@ Page Language="c#" Debug="true" Codebehind="WebForm1.pas"
> AutoEventWireup="false" Inherits="WebForm1.TWebForm1"%>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> 
> <html>
>   <head>
> 	<title></title>
>   </head>
>   <body ms_positioning="GridLayout">
> 	<form runat="server">
> 	ä ö ü </form>
>   </body>
> </html>
> 
> 2. Compile this webapplication in Delphi 2005
> 
> 3. upload the WebForm1.aspx and the corresponding assembly
> 
> 4. Upload the Web.config with the following globalization section:
>     <globalization 
>                                     requestEncoding="utf-8"
> 			responseEncoding="utf-8"
>                                     fileEncoding="utf-8"
> 
>    />
> 
> The resulting page I see in the web browser is:
> 
>  ä ö ü
> 
> The browser is set to Unicode(utf-8). 
> 
> If I change the responseEncoding in web.config to "iso-8859-1". The same
> page is shown but the browser is set to Western(iso-8859-1). If I then
> manually change the browsers encoding to Unicode(utf-8) everything is
fine.
> 
> Does anybody know how to solve this strange problem?
> 
> Thanks in advance
> Alois
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


More information about the Mono-list mailing list