开发者

The easiest and portable way to do standard URL Encoding in VB6?

开发者 https://www.devze.com 2023-02-06 02:41 出处:网络
Our company has a VB6 program, and it now needs to be integrated with some internal web applications / web services. In order to interact with those web services, parameters need to be URL-encoded. Ho

Our company has a VB6 program, and it now needs to be integrated with some internal web applications / web services. In order to interact with those web services, parameters need to be URL-encoded. However, VB6 doesn't provide such as HttpUtility.UrlEncode(), as well as the default charset is Unico开发者_StackOverflow中文版de rather than UTF-8. I'm seeking a most easier and portable way to make the VB6 web request to conform to the standard. Please kindly advise.

Thanks! William Choi


You might consider UrlEscape in shlwapi.dll.


I found myself the helpers listed in the following link. They're really helpful and portable. Unicode string to UTF8 bytes in VB6.0


You may have to write your own encoder.

It's not terribly difficult.

This Wikipedia article can help you get started.

0

精彩评论

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

关注公众号