>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