Why $_SERVER[‘HTTP_REFERER’] (PHP) and Request.ServerVariables(“HTTP_REFERER”) (ASP) return different result if query string has non english characters?
php return correct value but asp will not:
php: сабака
asp: ׁ׀°׀±׀°׀÷׀°
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to RFC 2616, characters not in ISO- 8859-1 should be specially encoded. Therefore it seems that whoever is sending you the headers is breaking the spec. See field-content and TEXT.
4.2 Message Headers
2.2 Basic Rules