Character Sets. Can you tell me what i am doing wrong here? Thank You.

  • Thread starter Miguel Dias Moura
  • Start date
M

Miguel Dias Moura

Hello,

i had problems in my web site with the database and characters such as "é",
"?", "á", etc.

The last version of this web site was in standard ASP and everything was ok.

Anyway, somebody told me that the problem was in the default enconding of
ASP.net which was UTF-8.

I added the following in my web.config file:

<system.web>
<globalization
requestEncoding="UTF-8"
responseEncoding="UTF-8"
/>
</system.web>

Then i tryied to change the UTF-8 part to another Charater Sets, such as
Latin or Portuguese, available in
http://www.iana.org/assignments/character-sets.

However, everytime i make this change i get the following error:
The <globalization> tag contains an invalid value for the 'requestEncoding'
attribute.

Anyway, look at one of the Charater Set i used:
....
requestEncoding="ISO-10646-Unicode-Latin1"
responseEncoding="ISO-10646-Unicode-Latin1"
....

Can you help me out? I am going crazy, i don't know what else to do and all
my work is dependent of this.

Thank You,
Miguel
 
S

Sharon

Backup your files first just to be on the safe side.
Open the files in textpad (http://www.textpad.com).
When you choose Save As... you get Encoding pull down.
Choose Unicode and save.
Hope it works for you.
Sharon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top