Importing unicode UTF8 text files - followup

J. Landman Gay jacque at hyperactivesw.com
Wed Aug 19 15:23:32 EDT 2015


On 8/19/2015 2:09 PM, J. Landman Gay wrote:
> Just to follow up: When importing foreign language files, "file" isn't
> working. Non-ascii characters show up as question marks and textDecode
> does nothing.
>
> Using "binfile" and then textDecoding does import correctly but then
> text chunking by lines fails. Line endings are imported as 2 bytes using
> byteToNum 13,10 (in that order) which isn't the line ending standard for
> any OS. I have to replace those specifically.
>
> These are text files saved as UTF-8, created on Mac OS X and imported on
> Mac OS X. I'm using LC 7.0.6.
>

Sigh. They don't all do that. Some of the files have CR endings. It 
seems to vary by language.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the Use-livecode mailing list