简体   繁体   English

瑞典字母在asp.net中显示为特殊字符

[英]Swedish letters display as special characters in asp.net

I am showing swedish letters in an alert box title, but it is showing the swedish letters in special characters. 我在一个警告框标题中显示瑞典字母,但它显示特殊字符的瑞典字母。

For example, I am showing this word as an alert box title: 例如,我将此单词显示为警告框标题:

Arbetsförändring Arbetsförändring

But it is showing like 但它表现得像

Arbetsf r ndring Arbetsfrndring

How can I solve this issue? 我该如何解决这个问题?

You basically want to set the "Culture" properties on your ASP.Net page: 您基本上想要在ASP.Net页面上设置“Culture”属性:

To set the encoding for all pages, you can set the "Globalization" property in web.config: 要设置所有页面的编码,可以在web.config中设置“Globalization”属性:

Here is the root page for ASP.Net Globalization and Localization: 这是ASP.Net全球化和本地化的根页面:

'Hope that helps! '希望有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM