0

在此处输入图像描述

我在 .aspx 页面中遇到了上述错误。我加

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta content="utf-8" http-equiv="encoding">

到我的 aspx 页面,但我仍然收到此错误,请帮助我...谢谢

4

1 回答 1

0

您应该尝试在 Page 指令中设置 CodePage(请参阅http://msdn.microsoft.com/en-us/library/ydy4x04a%28v=vs.71%29.aspx

例如,对于 ISO-8859-1,代码页是 28591 :

<%@ Page language="c#" Codebehind="yourpage.aspx.cs" AutoEventWireup="false" Inherits="yourpage" 
codePage="28591" %>

对于 utf-8,代码页是 65001 :

<%@ Page language="c#" Codebehind="yourpage.aspx.cs" AutoEventWireup="false" Inherits="yourpage" 
codePage="65001" %>

有关代码页列表,请参阅 http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx

希望这会有所帮助

于 2013-01-21T14:52:49.210 回答