> On 10 Sep 2015, at 8:18 pm, Mark Waddingham <m...@livecode.com> wrote: > > Indeed. I think this is actually something we can change without causing any > problems: > > If a script only stack file contains a BOM at the start then engine only > processes it as UTF-8. > > If a script only stack file does not contain a BOM, then it tries to decode > as UTF-8 if this fails it decodes as native platform encoding. > > This should work because it is incredibly unlikely that a native platform > encoded textfile will appear as well-formed UTF-8.
I wouldn’t worry about the native encoding. Just throw an error mentioning utf8 and be done with it. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode