unicode files? open file for text or binary?

Kee Nethery kee at kagi.com
Fri Jan 8 18:57:48 EST 2010


I want to open a unicode file and read it. It has a BOM at the front to indicate what kind of encoding it uses (in this case UTF-16). Do I open this as a text file and read it and unicode goodness happens? Or is it a bunch of binary data that I need to somehow convert into unicode values (ug)?

Kee Nethery


More information about the use-livecode mailing list