>>>>>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.
>
>Thanks Dragan, Antonio got me the solution.
Yup, that applies to your case. Mine is mostly for text files.