views:

91

answers:

3

Hello! I'm getting my text from a textbox from code-behind using control.Text() but I'm not getting the proper characters, I want "ÅÄÖ". Must be some problem with the text encoding but I've already checked my encoding settings in VS. Someone??

A: 

The letters looks swedish - hence I have made the following to match swedish letters. If it's another language change the culture.

in your web.config set the following

<configuration>
      <system.web>
         <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="sv-SE" uiCulture="en-US" />
      </system.web>
</configuration>
Morten Anderson
+1  A: 
<globalization requestEncoding="utf-8" responseEncoding="utf-8"  />

source: http://support.microsoft.com/kb/893663

Chris Ballance
A: 

Well Morten! that did the work! thanks

elias