I have seen example in the dictionary, for example in the LC901 Dictionary under "textEncode" entry, where LC9 text (in a field or variable) is encoded as UTF-8 and written to a file as:

puttextEncode(tSomeText,"UTF-8") intoURL ("file:"&tSomeFile)

However, my understanding is the the "file:" identifier tries to do "intelligent" line ending translation for the platform LC is running on. So in order to produce true UTF8 platform independent output, the examples should be

puttextEncode(tSomeText,"UTF-8") intoURL ("binfile:"&tSomeFile)

In other words, should not the rule be that when outputting anything other than "native" text (MacRoman (OSX) or Latin-1 (Win) or ISO for Linux), should it always be written a "binfile:" (i.e binary) so the coding is not changed?

Does any LC expert know the answer to this?



_______________________________________________
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

Reply via email to