
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x5B;&#x41;&#x53;&#x50;&#x5D;&#x43;&#x6F;&#x64;&#x65;&#x50;&#x61;&#x67;&#x65;&#x3001;&#x52;&#x65;&#x73;&#x70;&#x6F;&#x6E;&#x73;&#x65;&#x2E;&#x43;&#x6F;&#x64;&#x65;&#x50;&#x61;&#x67;&#x65;&#x548C;&#x53;&#x65;&#x73;&#x73;&#x69;&#x6F;&#x6E;&#x2E;&#x43;&#x6F;&#x64;&#x65;&#x50;&#x61;&#x67;&#x65;&#x4E09;&#x8005;&#x7684;&#x533A;&#x522B;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x31;&#x35;&#x2D;&#x30;&#x31;&#x2D;&#x31;&#x37;&#x20;&#x30;&#x34;&#x3A;&#x30;&#x35;&#x20;&#x50;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=5">&#x57;&#x65;&#x62;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x5173;&#x4E8E;CodePage&#x3001;Response.CodePage&#x548C;Session.CodePage&#x4E09;&#x8005;&#x7684;&#x533A;&#x522B;&#xFF0C;MSDN&#x8BF4;&#x660E;&#x5982;&#x4E0B;&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;Setting @CODEPAGE explicitly affects literal strings in a single response. Response.CodePage affects dynamic strings in a single response, and Session.CodePage affects dynamic strings in all responses in a session.<br/>&#x5927;&#x610F;&#x662F;CodePage&#x5F71;&#x54CD;&#x9759;&#x6001;&#x6587;&#x672C;&#xFF0C;Response.CodePage&#x5F71;&#x54CD;&#x52A8;&#x6001;&#x6587;&#x672C;&#xFF0C;Session.CodePage&#x7684;&#x4F5C;&#x7528;&#x548C;Response.CodePage&#x76F8;&#x540C;&#xFF0C;&#x53EA;&#x662F;&#x5B83;&#x7684;&#x4F5C;&#x7528;&#x8303;&#x56F4;&#x66F4;&#x5927;&#xFF0C;&#x5F71;&#x54CD;&#x540C;&#x4E00;&#x4F1A;&#x8BDD;&#x7684;&#x6240;&#x6709;&#x54CD;&#x5E94;&#x3002;<br/>1&#x3001;CodePage&#x548C;Response.CodePage&#x7684;&#x6D4B;&#x8BD5;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%@ CodePage=65001 %&gt;<br/>&lt;%<br/>&#160;&#160;&#160;&#160;Response.Charset=&#34;utf-8&#34;&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;Response.CodePage = 936<br/>&#160;&#160;&#160;&#160;Response.Write(&#34;&#x8FD9;&#x662F;&#x52A8;&#x6001;&#x6587;&#x672C;&#x3002;&#34;)&#160;&#160;&#160;&#160;<br/>%&gt;<br/>&#x8FD9;&#x662F;&#x9759;&#x6001;&#x6587;&#x672C;&#x3002;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%@ CodePage=65001 %&gt;<br/>&lt;%<br/>&#160;&#160;&#160;&#160;Response.Charset=&#34;gb2312&#34;&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;Response.CodePage = 936<br/>&#160;&#160;&#160;&#160;Response.Write(&#34;&#x8FD9;&#x662F;&#x52A8;&#x6001;&#x6587;&#x672C;&#x3002;&#34;)&#160;&#160;&#160;&#160;<br/>%&gt;<br/>&#x8FD9;&#x662F;&#x9759;&#x6001;&#x6587;&#x672C;&#x3002;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%@ CodePage=936 %&gt;<br/>&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;Response.Charset=&#34;gb2312&#34;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Response.CodePage = 936<br/>&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(&#34;&#x8FD9;&#x662F;&#x52A8;&#x6001;&#x6587;&#x672C;&#x3002;&#34;)&nbsp;&nbsp;&nbsp;&nbsp;<br/>%&gt;<br/>&#x8FD9;&#x662F;&#x9759;&#x6001;&#x6587;&#x672C;&#x3002;<br/>&#x8BF4;&#x660E;&#xFF1A;&#x7F51;&#x9875;&#x6587;&#x4EF6;&#x7F16;&#x7801;&#x4E3A;UTF-8&#x3002;<br/>2&#x3001;Response.CodePage&#x548C;Session.CodePage&#x7684;&#x6D4B;&#x8BD5;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;Response.Charset=&#34;gb2312&#34;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Session.CodePage = 65001<br/>&#160;&#160;&#160;&#160;Response.CodePage = 936<br/>&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(&#34;&#x8FD9;&#x662F;&#x52A8;&#x6001;&#x6587;&#x672C;&#x3002;&#34;)&nbsp;&nbsp;&nbsp;&nbsp;<br/>%&gt;<br/>&#x8FD9;&#x662F;&#x9759;&#x6001;&#x6587;&#x672C;&#x3002;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;Response.Charset=&#34;gb2312&#34;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&#160;&#160;&#160;&#160;Response.CodePage = 936<br/>&#160;&#160;&#160;&#160;Session.CodePage = 65001<br/>&nbsp;&nbsp;&nbsp;&nbsp;Response.Write(&#34;&#x8FD9;&#x662F;&#x52A8;&#x6001;&#x6587;&#x672C;&#x3002;&#34;)&nbsp;&nbsp;&nbsp;&nbsp;<br/>%&gt;<br/>&#x8FD9;&#x662F;&#x9759;&#x6001;&#x6587;&#x672C;&#x3002;<br/>3&#x3001;CodePage&#x3001;Response.CodePage&#x548C;Session.CodePage&#x53D6;&#x503C;&#x987A;&#x5E8F;<br/>&#x82E5;&#x672A;&#x8BBE;&#x7F6E;CodePage&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;If @CODEPAGE is not explicitly set in a page, it is implicitly set by the AspCodePage metabase property o&#114; by the system ANSI code page.<br/>&#x82E5;&#x672A;&#x8BBE;&#x7F6E;Response.CodePage&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;If Response.CodePage is not explicitly set in a page, it is implicitly set by Session.CodePage, if sessions are enabled. If sessions are not enabled, Response.CodePage is set by @CodePage, if @CodePage is present in the page. If there is no @CodePage in the page, Response.CodePage is set by the AspCodePage metabase property. If the AspCodePage metabase property is not set, o&#114; set to 0, Response.CodePage is set by the system ANSI codepage.<br/>&#x82E5;&#x672A;&#x8BBE;&#x7F6E;Session.CodePage&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;If Session.CodePage is not explicitly set on a page, it is implicitly set by the AspCodePage metabase property. If the AspCodePage property is not set, o&#114; set to 0, Session.CodePage is set by the system ANSI code page. Session.CodePage is no longer implicitly set by @CodePage, as it was for IIS 5.0 and earlier versions. This change was made because one @CodePage could change the code page for an entire session. Now, @CodePage and Response.CodePage affect only single responses, while Session.CodePage affects all responses in a session.<br/>4&#x3001;Response.Charset&#x7684;&#x4F5C;&#x7528;<br/>&#x8FD8;&#x662F;&#x770B;MSDN&#x7684;&#x8BF4;&#x660E;&#xFF1A;<br/> &#x5F15;&#x7528;&#x5185;&#x5BB9;If the code page is set in a page, then Response.Charset should also be set. The code page value specifies to IIS how to encode the data when building the response, and the charset value tells the browser how to decode the data when displaying the response. The CharsetName of Response.Charset must match the code page value, o&#114; mixed characters are displayed in the browser.<br/>5&#x3001;&#x53C2;&#x8003;&#x8D44;&#x6599;<br/>[1].@CODEPAGE&#xFF1A;http://msdn.microsoft.com/en-us/library/ms524967.aspx<br/>[2].Response.CodePage&#xFF1A;http://msdn.microsoft.com/zh-cn/library/aa711540<br/>[3].Session.CodePage&#xFF1A;http://msdn.microsoft.com/zh-cn/library/ms525649</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.629&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x5B;&#x41;&#x53;&#x50;&#x5D;&#x43;&#x6F;&#x64;&#x65;&#x50;&#x61;&#x67;&#x65;&#x3001;&#x52;&#x65;&#x73;&#x70;&#x6F;&#x6E;&#x73;&#x65;&#x2E;&#x43;&#x6F;&#x64;&#x65;&#x50;&#x61;&#x67;&#x65;&#x548C;&#x53;&#x65;&#x73;&#x73;&#x69;&#x6F;&#x6E;&#x2E;&#x43;&#x6F;&#x64;&#x65;&#x50;&#x61;&#x67;&#x65;&#x4E09;&#x8005;&#x7684;&#x533A;&#x522B;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.629&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.629&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
