Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting WinHttpRequest response to application code
Message
From
10/02/2023 03:43:18
 
 
To
10/02/2023 03:04:02
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01686154
Message ID:
01686169
Views:
37
Hi!

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

Conversion from UTF-8 using
STRCONV(CHR(0xc3)+CHR(0x83)+ CHR(0xc2)+CHR(0x9c) ,11, 1257, 1)
Returns question mark.
Result should be Ü character, single byte 0xDC. Those 4 bytes per character are returned in WinHttpRequest.ResponseText. How to get 0xDC result ?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform