UTF-8 Text in ASP.NET

If you are trying to display non-english characters in your ASP.NET page the following might be helpful. I recently was working on some landing pages for different languages and the text was displaying correctly in Visual Studio, however when I viewed it in a web browser, it wasn’t displaying correctly.

After reading through this brilliant blog post by Milan Negovan, I made the following change to the globalization tag:

changed to this:

fileEncoding=”utf-8″ />

Read Milan’s post for a complete explanation, but suffice it to say, you will need to set the file encoding to that the page will be rendered correctly.