Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encoding for iOS
Message
De
08/12/2021 06:24:42
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/12/2021 04:51:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01682920
Message ID:
01682927
Vues:
40
>>>Hi All
>>>
>>>I have a problem with returning content from an IIS website using VFP scripts to generate Text/HTML to an iPhone app we have made. The script on the server is just returning some content in plain text format (which I understand will be ANSI as Windows default?). This text I can receive in any Windows client without issue. Can also receive it in Android devices by specifying the returned result as ANSI. But in an iPhone running iOS the return packet always seems empty but I assume it's not empty but rather unrecognizable or un-processable. I understand iOS uses only UNICODE for strings(?) so the question is; should I be converting the data packet to some other format before returning it to the iPhone?
>>
>>I'd try utf-8, it seems to be the default on *nix based systems - and practically everything except windowses is that nowadays.
>
>Dragan, Hope you well
>
>So would that be STRCONV( m.MyData , 9 ) ? Or something else as well ?

strconv(strconv("your string here",1),9,1252,1)

Instead of 1252 you'd put the codepage that you're using, if different. Also, if writing into a text file, prefix it with a proper BOM (byte order marker),
FWRITE(nHandle, 0hEFBBBF)

You can check message #01682876 or the whole thread... but there's not much else in there.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform