[Mono-aspnet-list] Problem with charsets configuration
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Wed Feb 17 14:41:38 EST 2010
On Wed, 2010-02-17 at 11:11 -0800, Carlos Eduardo L. Lopes wrote:
> Hi,
>
> i'm migrating my projects from VS2008 to MonoDevelop and everything works
> fine, excepts the charsets configuration that causes errors when i
> debug/test my applications in the xsp2 server.
>
> I tried many possibilities and forms (following what is in the FAQ) to make
> my code run in MonoDevelop, but the same problem happens.
>
> When i write some word with accentuation in code-behind (like 'usuários' or
> 'requisições'), for example: to pass a text to a label. If the text is 'Olá
> Usuários', it is rendered 'Ol� Usu�rios'. :confused:
> Here is parts of my actual web.config (if you want i can post it here):
>
> ...
> <globalization requestEncoding="utf-8" responseEncoding="utf-8"
> fileEncoding="iso-8859-1" culture="pt-BR" />
>
That's probably because your file is stored in UTF-8 encoding and you're
telling ASP.NET in your 'fileEncoding' setting that the files are
iso-8859-1. Try setting your fileEncoding to 'utf-8' and see if that
works.
-Gonzalo
More information about the Mono-aspnet-list
mailing list