I'm developing and application which must integrate with PayPal. To do so, it makes some call via API, and in these calls I have to pass some parameters that are URLEncoded. My problem is that I don't get it working because Server.URLEncode of classic asp returns me something strange.
See bellow:
@CODEPAGE="65001"
Response.Charset = "UTF-8"
response.write(server.URLEncode("xxxx_1344559025_biz_api1.yy.com"))
Returns me this string: xxxx%5F1344559025%5Fbiz%5Fapi1%2Eyy%2Ecom
The same in PHP
echo(urlencode('xxxx_1344559025_biz_api1.yy.com'));
Returns me this string:xxxx_1344559025_biz_api1.yy.com
Both files are encoded in UTF-8, I do that on DreamWeaver with CTRL+J > title/encoding
Does anyone know why I get a so different answer in ASP classic and PHP?
Thanks in advance for any help.