2

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 Unicode 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

William X
  • 6,751
  • 6
  • 31
  • 50
  • You might also like to look at some [other](http://stackoverflow.com/questions/3516119/get-post-to-restful-web-service) questions on [calling](http://stackoverflow.com/questions/122607/what-is-the-best-way-to-consume-a-web-service-from-vb6) web services from VB6 – MarkJ Jan 25 '11 at 01:46

3 Answers3

2

You might consider UrlEscape in shlwapi.dll.

Bob77
  • 13,167
  • 1
  • 29
  • 37
0

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

William X
  • 6,751
  • 6
  • 31
  • 50
-1

You may have to write your own encoder.

It's not terribly difficult.

This Wikipedia article can help you get started.

tenor
  • 1,095
  • 6
  • 8