Writing to file in utf-8
Mark Schonewille
m.schonewille at economy-x-talk.com
Wed Sep 3 11:44:43 EDT 2014
He wants UTF8 files.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com
We have time for new software development projects. Contact me for a quote.
On 3 sep 2014, at 17:19, Trevor DeVore wrote:
> On Wed, Sep 3, 2014 at 7:28 AM, <jbv at souslelogo.com> wrote:
>
>> I have a script that accumulates successive strings into a file.
>> Each string comes from utf-8 text files and contains french
>> characters with accents like "é à ô".
>> After processing in the script, those strings get accumulated
>> in other txt files. I need these second serie of files to be in
>> utf-8 format too.
>> ...
>>
>> put (unidecode(it,"utf8") & return) after url tPath
>>
>
> Why are you using unidecode? Unless you are converting the data you read in
> to UTF16 data using uniencode then you are passing bad data to unidecode.
> unidecode expects UTF16 data. Based on what I've read you shouldn't need to
> use unidecode or uniencode. Just read the text in (using binfile),
> manipulate it, write the text out (using binfile).
>
> --
> Trevor DeVore
> ScreenSteps
> www.screensteps.com - www.clarify-it.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list