为什么如果查询字符串包含非英文字符,$_SERVER['HTTP_REFERER'](PHP)和Request.ServerVariables("HTTP_REFERER")(ASP)返回不同的结果?
PHP返回正确的值,但ASP不会:
PHP:сабака
ASP:ׁ׀°׀±׀°׀÷׀°
为什么如果查询字符串包含非英文字符,$_SERVER['HTTP_REFERER'](PHP)和Request.ServerVariables("HTTP_REFERER")(ASP)返回不同的结果?
PHP返回正确的值,但ASP不会:
PHP:сабака
ASP:ׁ׀°׀±׀°׀÷׀°
message-header = field-name ":" [ field-value ]
field-name = token
field-value = *( field-content | LWS )
field-content = <the OCTETs making up the field-value
and consisting of either *TEXT or combinations
of token, separators, and quoted-string>
TEXT = <any OCTET except CTLs, but including LWS>
The TEXT rule is only used for descriptive field contents and values that are not intended to be interpreted by the message parser. Words of *TEXT MAY contain characters from character sets other than ISO- 8859-1 [22] only when encoded according to the rules of RFC 2047 [14].