[Mono-aspnet-list] Globalization still not working in Mono 2.10
Robert Jordan
robertj at gmx.net
Wed May 4 15:20:21 EDT 2011
On 04.05.2011 20:12, H . wrote:
>
>
> Take a look at the tests I have done. I have extended the bug report.
> Yes, fileEncoding="iso-8859-1" fixed some of the problems. But why is
>
> No, there is definitely a problem. I have several working web
> applications that are currently running under .Net Framework. When
> beeing tested under Mono 2.10 there are lots of encoding problems.
> But I have to say, that I can't yet provide an appropriate sample
> application that demonstrates the issue.
>
> By the way, the sample application that I have created and added to
> the bug report does work without any modifications under .Net
> Framework. There are absolutely no encoding problems! What I want, is
> that such an application can be run without modification (or at least
> with minimal modifications) under Mono.
[Assuming you're testing under Windows, as stated in
your bug report]
If MS.NET does not detect a UTF BOM, it will fall
back to the default locale's encoding. Mono for Windows
does not fall back. It will simply assume en_US -> ANSI.
<globalization culture="de_DE" uiCulture="de_DE" ... />
might fix it, but I didn't test it.
Right now you're mixing utf8 and iso-8859-1 files
(Default.aspx file is ISO, while test.htm is UTF8).
It only works correctly under MS.NET because your locale's
default encoding is matching the file encoding.
With other words: it works by accident.
If you want a consistent setup, then try not to mix
file encodings, use UTF8 or set "fileEncoding" and set
the "culture" attribute (to make Mono for Windows happy).
Also, don't touch the request- and resposeEncoding attributes
as they have nothing to do with the file encoding.
Robert
More information about the Mono-aspnet-list
mailing list