开发者

UTF-8 character in code behind

开发者 https://www.devze.com 2023-01-14 19:31 出处:网络
I have a web site and it has some words with Turkish characters (ü,ş,ö,ç). There is no problem while is viewing, but when I want to use the words in the code behind for example CheckBoxList.Select

I have a web site and it has some words with Turkish characters (ü,ş,ö,ç). There is no problem while is viewing, but when I want to use the words in the code behind for example CheckBoxList.SelectedItem.Text, they are looking as html codes. For example; a labels text value is 'EYLÜL'. but when i looking that label's text value from code behind i'm seeing EYLÜL.

Code found i开发者_运维百科n web.config file, saved in utf-8 format.

<globalization
fileEncoding="utf-8"
requestEncoding="utf-8"
responseEncoding=""
culture="tr-TR"
uiCulture="tr-TR"
/>

How can you normally see the charachers in codebehind ?

Thanks for your helps.

KR,

Çağın

0

精彩评论

暂无评论...
验证码 换一张
取 消