Click to See Complete Forum and Search --> : Server.Form and incorrect words


pontonet
04-06-2007, 12:47 PM
Hi,

I have an ordinal HTML file. I want to get some form variables on my ASPX code, OK, and it works perfectly, setting the action of the HTML form to my ASPX page and submitting it, then, on my ASPX page, I can get the variables thought the Request.Form["varName"] method.
The problem begins when I have some characters with accent, like a city name here in Brazil, e.g.: 'São Paulo'. I just get 'So Paulo' (without the 'ã') in my ASPX page.

Does anybody know any hint that could help me on this case?

Thanks in advance guys...

bb

PeOfEo
04-06-2007, 11:01 PM
You're going to need to change the encoding, I believe unicode should do it, this may be helpful:
http://www.codeproject.com/aspnet/Encoding_in_ASPNET.asp

pontonet
04-07-2007, 07:05 PM
<META http-equiv="Content-Type" content="text/html; charset=utf-8">

solved my problem...
thanks for your initial kick anyways... :D

PeOfEo
04-09-2007, 08:49 AM
well, that was easy!