开发者

Special chars in querystrings in IE don't get properly decoded

开发者 https://www.devze.com 2023-03-30 08:49 出处:网络
I have an issue with IE, when sending a querystring with special characters in it as for instance with the \"Ø\" (name=bjørn) in asp.net wil开发者_如何学Gol be somehow encoded into \"name=bj%ufffdrn

I have an issue with IE, when sending a querystring with special characters in it as for instance with the "Ø" (name=bjørn) in asp.net wil开发者_如何学Gol be somehow encoded into "name=bj%ufffdrn", "ø" gets translated into "%ufff"

I would like to know, how to decode this into the right charaters.

This only happens with IE not with FF, Ch or opera.

Any ideas?

Thanks!


Firstly, you shouldn't be using htmlspecialchars to encode a URL. In PHP use urlencode (see http://uk3.php.net/manual/en/function.urlencode.php). Then ASP.NET should decode the URL parameters for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消