Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swedish letters display as special characters in asp.net

Tags:

c#

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

But it is showing like

Arbetsf�r�ndring

How can I solve this issue?

like image 567
Kannan Avatar asked Jan 01 '26 00:01

Kannan


1 Answers

You basically want to set the "Culture" properties on your ASP.Net page:

  • http://msdn.microsoft.com/en-us/library/bz9tc508.aspx

To set the encoding for all pages, you can set the "Globalization" property in web.config:

  • http://msdn.microsoft.com/en-us/library/39d1w2xf%28v=vs.100%29.aspx

Here is the root page for ASP.Net Globalization and Localization:

  • http://msdn.microsoft.com/en-us/library/c6zyy3s9%28v=vs.100%29.aspx

'Hope that helps!

like image 187
paulsm4 Avatar answered Jan 03 '26 14:01

paulsm4



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!