File object properties
encoding String
Gets or sets the encoding for subsequent read/write operations. One
of the encoding constants listed in “File and Folder Supported
Encoding Names” on page 42. If the value is not recognized, uses the
system default encoding.
A special encoder, BINARY, is used to read binary files. It stores each
byte of the file as one Unicode character regardless of any encoding.
When writing, the lower byte of each Unicode character is treated as
a single byte to write.