Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting WinHttpRequest response to application code
Message
From
09/02/2023 09:48:03
 
 
To
09/02/2023 09:35:24
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01686154
Message ID:
01686158
Views:
46
>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?

https://github.com/VFPX/Win32API/blob/master/libraries/kernel32/WideCharToMultiByte.md
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform