Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UTF-8 file creation
Message
From
27/08/2010 09:37:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/08/2010 10:24:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01478595
Message ID:
01478831
Views:
49
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform