Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting WinHttpRequest response to application code
Message
From
10/02/2023 03:04:02
 
 
To
09/02/2023 16:16:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01686154
Message ID:
01686168
Views:
43
>Hi!
>
>>https://github.com/VFPX/Win32API/blob/master/libraries/kernel32/WideCharToMultiByte.md
>
>According to this STRCONV() replaces it.
>
>I tried
>
>STRCONV(strconv(CHR(0xc3)+CHR(0x83)+ CHR(0xc2)+CHR(0x9c) ,10) ,11, 1257, 1)
>
>
>this should return letter Ü but returns two question marks.

Andrus, the UTF-8 encoding of Ü (in Western or Baltic code pages) is 0hC39C. I would guess that you're reencoding a UTF-8 chain into UTF-8 again, somewhere in your code.

A side note: the question marks that appear as result of your STRCONV() come from you trying to display the UNICODE characters 쎃 (0hC383) and 슖 (0hC29C). VFP will never be able to display them, unless you use a UNICODE capable control. When you STRCONV(X, 10) you're saying that you have an X UNICODE binary string in the first place. That does not seems to be the case.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform