What should I do to change one aspx page to have utf-8 encoding?
my web.config has the following code:
<system.web>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"/>
</system.web>
Tried this:
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
doesn't work.
Try to insert
In your
Page_Load
if you want to do it dynamically.Try this;
To set the encoding for an individual page, set the
RequestEncoding
andResponseEncoding
attributes of the@ Page
directive:Or you can use
location
like this:Read more: How to: Select an Encoding for ASP.NET Web Page Globalization.