Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UTF-8 file creation
Message
De
27/08/2010 09:37:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/08/2010 10:24:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01478595
Message ID:
01478831
Vues:
48
>Hi Antonio
>
>I think in my case its the file not the content.
>
>The contents if the file do seem to be UTF-8 but the recipient is telling me the file is not UTf-8

You need a prefix, so then even notepad will know to expect UTF-8
STRCONV(STRCONV(0hfffe+m.lcFileContent,1),9)
Or what Rick said, which is the simpler way to do this.

>>
>>STRCONV(STRCONV(m.lcFileContent,1),9)
>>
>>
>>will encode your output in UTF-8.
>>
>>>HI
>>>
>>>I'm creating a file using FCREATE etc .
>>>
>>>The files contents are some XML
>>>
>>>The recipient wants it in UTF-8 format.
>>>
>>>how do I ensure that the file I create is in that format .
>>>
>>>Nick

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