Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting WinHttpRequest response to application code
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01686154
Message ID:
01686157
Views:
47
Hi,

> You can use STRCONV("utf8string",9, 1257, 1)

Result is not in UTF-8
WinHttpReq.ResponseText is a BSTR, so it stores Unicode data, not UTF8.

To convert it to Ansi or UTF8 WideCharToMultiByte winapi can used. How to call it from FoxPro?
Or maybe some other STRCONV() calls can used?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform