1

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 will 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!

byte_slave
  • 1,368
  • 1
  • 12
  • 24
  • This is probably the correct behaviour. Where are you sending the query string from? Can you show some code? – Pekka Aug 25 '11 at 07:23
  • Background: [Unicode characters in URLs](http://stackoverflow.com/q/2742852) – Pekka Aug 25 '11 at 07:23
  • The code is generated in wordpress using php and "htmlspecialchars()" function and then will generate a link that will connect to an asp.net handler where i'm getting this problem decoding the query string. – byte_slave Aug 25 '11 at 07:31

1 Answers1

1

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.

Sam Huggill
  • 3,106
  • 3
  • 29
  • 34