开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜