Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UTF-8 file creation
Message
De
27/08/2010 13:06:10
 
 
À
27/08/2010 12:52:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01478595
Message ID:
01478912
Vues:
37
Ok, Nicholas, if you, by now, have a properly UTF-8 encoded and well formed XML document that the other side of the chain is rejecting on encoding grounds, all I can suggest is that you submit it to a third-party validation tool (such as http://www.xmlvalidation.com/) or get access to the parser they're using (assuming that you already validated it against a parser on your side).

>Yes
>
>>Did you include the encoding in the XML declaration at the start of the document?
>>
>>>No I've left my Fcreate,Fputs and Fclose as it was except I've used your STRCONV suggestion. But that file while it may have utf-8 encoded content is not marked as such
>>>
>>>So afterwards I read the whole file into a string using FILETOSTR and then rewrite it using
>>>
>>>STRTOFILE(lcencodedcontent,lcfilename,4)
>>>
>>>this output file then is marked as UTF-8 encoded
>>>
>>>
>>>
>>>
>>>>>Hi Antonio.
>>>>>
>>>>> In my case all I know is that the (very precise) Germans at the other end my data feed are telling me that mine is not a UTF-8 file.
>>>>>
>>>>>Nick
>>>>>
>>>>
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform