Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting WinHttpRequest response to application code
Message
From
10/02/2023 07:07:19
 
 
To
10/02/2023 06:26:10
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01686154
Message ID:
01686183
Views:
35
>Hi,
>>
>> If you have VFP 9 then: STRCONV(cExpression, nConversionSetting [, nRegionalIdentifier [, nRegionalIDType]])
>>
>>nRegionalIDType it's a flag if nRegionalIdentifier is Locale ID, codepage or FontCharSet. (modified)
>
>>
>> cres = STRCONV(CHR(0xc3)+CHR(0x83)+ CHR(0xc2)+CHR(0x9c) ,11 , 1257, 1)
>>
>
>It outputs question mark.

Andrus, you keep trying to decode UTF-8 characters that are not what you think they are.

CHR(0xc3) + CHR(0x83) is the UTF-8 encoding of Latin Capital A with tilde. This does not have a correspondence in code page 1257, therefore the question mark. If you STRCONV() into windows-1252, you'll be able to see à instead.

CHR(0xc2) + CHR(0x9c) is a control character. It does not have a visual representation.

See table https://www.utf8-chartable.de/unicode-utf8-table.pl?start=128 for details.
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform