# Type alias: Encoding
Ƭ Encoding(): "ascii" | "base64" | "binary" | "hex" | "ucs2" | "ucs-2" | "utf16le" | "utf-16le" | "utf-8" | "utf8" | "latin1"
指定读取文件的字符编码,如果不传 encoding,则以 ArrayBuffer 格式读取文件的二进制内容
可选值:
- 'ascii': ;
- 'base64': ;
- 'binary': ;
- 'hex': ;
- 'ucs2': 以小端序读取;
- 'ucs-2': 以小端序读取;
- 'utf16le': 以小端序读取;
- 'utf-16le': 以小端序读取;
- 'utf-8': ;
- 'utf8': ;
- 'latin1': ;
# 返回值:
"ascii" | "base64" | "binary" | "hex" | "ucs2" | "ucs-2" | "utf16le" | "utf-16le" | "utf-8" | "utf8" | "latin1"