Put URL into variable and textEncoding

Monte Goulding monte at appisle.net
Mon Feb 12 20:49:59 EST 2018



> On 13 Feb 2018, at 11:56 am, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> something more sensible


We already have:

open file for “utf-8” text

There was some discussion of implementing “file+<encoding>:/path/to/file” style urls to avoid having to use binfile and textDecode and manual line ending wrangling.

Also if there is a BOM then the unicode encoding can and is worked for file: urls and open file for text. It’s when there’s no BOM and no explicit encoding specified that the engine defaults to legacy native encodings.

Cheers

Monte


More information about the use-livecode mailing list