Tuesday, April 10, 2012

UTF-8 Server.UrlEncode problem in ASP Classic

I'm having a bit of bother URL encoding a string of UTF-8 encoded text to pass over HTTP. I am using Server.URlEncode in classic ASP (vbscript) to do the encoding on the "é" character.



It produces the following string,



%C3%83%C2%A9



The system I am talking to over HTTP is PHP however and it cannot decode this string. Using a PHP encoder at http://www.albionresearch.com/misc/urlencode.php the same character encoded using the PHP URL encoding method comes out as,



%E9



Does anyone know how I can successfully encode my UTF-8 encoded strings in my ASP so that the PHP system can successfully decode them?





No comments:

Post a Comment