开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜