Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting WinHttpRequest response to application code
Message
De
10/02/2023 03:04:02
 
 
À
09/02/2023 16:16:10
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01686154
Message ID:
01686168
Vues:
44
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform