myFile.encoding in Photoshop DOM

The encoding of the file for read/write operations.

Property Type
This property is one of several predefined constants that follow the common Internet encoding names. Valid names are UCS-2, X-SJIS, ISO-8851-9, ASCII or the like. A special encoder, BINARY, is used to read binary files. This encoder 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. See appendix A for a list of encodings. If an unrecognized encoding is used, the encoding reverts to the system default encoding.