merge UTF-8 and UTF-16 encodings with or without BOM, with BOM automatically detected and handled

This commit is contained in:
MaysWind
2026-03-01 15:27:03 +08:00
parent 8192a48bc5
commit 9d275a3051
21 changed files with 49 additions and 112 deletions
@@ -33,58 +33,55 @@ var supportedFileTypeSeparators = map[string]rune{
} }
var supportedFileEncodings = map[string]encoding.Encoding{ var supportedFileEncodings = map[string]encoding.Encoding{
"utf-8": unicode.UTF8, // UTF-8 "utf-8": unicode.UTF8BOM, // UTF-8
"utf-8-bom": unicode.UTF8BOM, // UTF-8 with BOM "utf-16le": unicode.UTF16(unicode.LittleEndian, unicode.UseBOM), // UTF-16 Little Endian
"utf-16le": unicode.UTF16(unicode.LittleEndian, unicode.UseBOM), // UTF-16 Little Endian "utf-16be": unicode.UTF16(unicode.BigEndian, unicode.UseBOM), // UTF-16 Big Endian
"utf-16be": unicode.UTF16(unicode.BigEndian, unicode.UseBOM), // UTF-16 Big Endian "cp437": charmap.CodePage437, // OEM United States (CP-437)
"utf-16le-bom": unicode.UTF16(unicode.LittleEndian, unicode.ExpectBOM), // UTF-16 Little Endian with BOM "cp863": charmap.CodePage863, // OEM Canadian French (CP-863)
"utf-16be-bom": unicode.UTF16(unicode.BigEndian, unicode.ExpectBOM), // UTF-16 Big Endian with BOM "cp037": charmap.CodePage037, // IBM EBCDIC US/Canada (CP-037)
"cp437": charmap.CodePage437, // OEM United States (CP-437) "cp1047": charmap.CodePage1047, // IBM EBCDIC Open Systems (CP-1047)
"cp863": charmap.CodePage863, // OEM Canadian French (CP-863) "cp1140": charmap.CodePage1140, // IBM EBCDIC US/Canada with Euro (CP-1140)
"cp037": charmap.CodePage037, // IBM EBCDIC US/Canada (CP-037) "iso-8859-1": charmap.ISO8859_1, // Western European (ISO-8859-1)
"cp1047": charmap.CodePage1047, // IBM EBCDIC Open Systems (CP-1047) "cp850": charmap.CodePage850, // Western European (CP-850)
"cp1140": charmap.CodePage1140, // IBM EBCDIC US/Canada with Euro (CP-1140) "cp858": charmap.CodePage858, // Western European with Euro (CP-858)
"iso-8859-1": charmap.ISO8859_1, // Western European (ISO-8859-1) "windows-1252": charmap.Windows1252, // Western European (Windows-1252)
"cp850": charmap.CodePage850, // Western European (CP-850) "iso-8859-15": charmap.ISO8859_15, // Western European (ISO-8859-15)
"cp858": charmap.CodePage858, // Western European with Euro (CP-858) "iso-8859-4": charmap.ISO8859_4, // North European (ISO-8859-4)
"windows-1252": charmap.Windows1252, // Western European (Windows-1252) "iso-8859-10": charmap.ISO8859_10, // North European (ISO-8859-10)
"iso-8859-15": charmap.ISO8859_15, // Western European (ISO-8859-15) "cp865": charmap.CodePage865, // North European (CP-865)
"iso-8859-4": charmap.ISO8859_4, // North European (ISO-8859-4) "iso-8859-2": charmap.ISO8859_2, // Central European (ISO-8859-2)
"iso-8859-10": charmap.ISO8859_10, // North European (ISO-8859-10) "cp852": charmap.CodePage852, // Central European (CP-852)
"cp865": charmap.CodePage865, // North European (CP-865) "windows-1250": charmap.Windows1250, // Central European (Windows-1250)
"iso-8859-2": charmap.ISO8859_2, // Central European (ISO-8859-2) "iso-8859-14": charmap.ISO8859_14, // Celtic (ISO-8859-14)
"cp852": charmap.CodePage852, // Central European (CP-852) "iso-8859-3": charmap.ISO8859_3, // South European (ISO-8859-3)
"windows-1250": charmap.Windows1250, // Central European (Windows-1250) "cp860": charmap.CodePage860, // Portuguese (CP-860)
"iso-8859-14": charmap.ISO8859_14, // Celtic (ISO-8859-14) "iso-8859-7": charmap.ISO8859_7, // Greek (ISO-8859-7)
"iso-8859-3": charmap.ISO8859_3, // South European (ISO-8859-3) "windows-1253": charmap.Windows1253, // Greek (Windows-1253)
"cp860": charmap.CodePage860, // Portuguese (CP-860) "iso-8859-9": charmap.ISO8859_9, // Turkish (ISO-8859-9)
"iso-8859-7": charmap.ISO8859_7, // Greek (ISO-8859-7) "windows-1254": charmap.Windows1254, // Turkish (Windows-1254)
"windows-1253": charmap.Windows1253, // Greek (Windows-1253) "iso-8859-13": charmap.ISO8859_13, // Baltic (ISO-8859-13)
"iso-8859-9": charmap.ISO8859_9, // Turkish (ISO-8859-9) "windows-1257": charmap.Windows1257, // Baltic (Windows-1257)
"windows-1254": charmap.Windows1254, // Turkish (Windows-1254) "iso-8859-16": charmap.ISO8859_16, // South-Eastern European (ISO-8859-16)
"iso-8859-13": charmap.ISO8859_13, // Baltic (ISO-8859-13) "iso-8859-5": charmap.ISO8859_5, // Cyrillic (ISO-8859-5)
"windows-1257": charmap.Windows1257, // Baltic (Windows-1257) "cp855": charmap.CodePage855, // Cyrillic (CP-855)
"iso-8859-16": charmap.ISO8859_16, // South-Eastern European (ISO-8859-16) "cp866": charmap.CodePage866, // Cyrillic (CP-866)
"iso-8859-5": charmap.ISO8859_5, // Cyrillic (ISO-8859-5) "windows-1251": charmap.Windows1251, // Cyrillic (Windows-1251)
"cp855": charmap.CodePage855, // Cyrillic (CP-855) "koi8r": charmap.KOI8R, // Cyrillic (KOI8-R)
"cp866": charmap.CodePage866, // Cyrillic (CP-866) "koi8u": charmap.KOI8U, // Cyrillic (KOI8-U)
"windows-1251": charmap.Windows1251, // Cyrillic (Windows-1251) "iso-8859-6": charmap.ISO8859_6, // Arabic (ISO-8859-6)
"koi8r": charmap.KOI8R, // Cyrillic (KOI8-R) "windows-1256": charmap.Windows1256, // Arabic (Windows-1256)
"koi8u": charmap.KOI8U, // Cyrillic (KOI8-U) "iso-8859-8": charmap.ISO8859_8, // Hebrew (ISO-8859-8)
"iso-8859-6": charmap.ISO8859_6, // Arabic (ISO-8859-6) "cp862": charmap.CodePage862, // Hebrew (CP-862)
"windows-1256": charmap.Windows1256, // Arabic (Windows-1256) "windows-1255": charmap.Windows1255, // Hebrew (Windows-1255)
"iso-8859-8": charmap.ISO8859_8, // Hebrew (ISO-8859-8) "windows-874": charmap.Windows874, // Thai (Windows-874)
"cp862": charmap.CodePage862, // Hebrew (CP-862) "windows-1258": charmap.Windows1258, // Vietnamese (Windows-1258)
"windows-1255": charmap.Windows1255, // Hebrew (Windows-1255) "gb18030": simplifiedchinese.GB18030, // Chinese (Simplified, GB18030)
"windows-874": charmap.Windows874, // Thai (Windows-874) "gbk": simplifiedchinese.GBK, // Chinese (Simplified, GBK)
"windows-1258": charmap.Windows1258, // Vietnamese (Windows-1258) "big5": traditionalchinese.Big5, // Chinese (Traditional, Big5)
"gb18030": simplifiedchinese.GB18030, // Chinese (Simplified, GB18030) "euc-kr": korean.EUCKR, // Korean (EUC-KR)
"gbk": simplifiedchinese.GBK, // Chinese (Simplified, GBK) "euc-jp": japanese.EUCJP, // Japanese (EUC-JP)
"big5": traditionalchinese.Big5, // Chinese (Traditional, Big5) "iso-2022-jp": japanese.ISO2022JP, // Japanese (ISO-2022-JP)
"euc-kr": korean.EUCKR, // Korean (EUC-KR) "shift_jis": japanese.ShiftJIS, // Japanese (Shift JIS)
"euc-jp": japanese.EUCJP, // Japanese (EUC-JP)
"iso-2022-jp": japanese.ISO2022JP, // Japanese (ISO-2022-JP)
"shift_jis": japanese.ShiftJIS, // Japanese (Shift JIS)
} }
var customTransactionTypeNameMapping = map[models.TransactionType]string{ var customTransactionTypeNameMapping = map[models.TransactionType]string{
-3
View File
@@ -13,11 +13,8 @@ export const UTF_8 = 'utf-8';
export const SUPPORTED_FILE_ENCODINGS: string[] = [ export const SUPPORTED_FILE_ENCODINGS: string[] = [
UTF_8, // UTF-8 UTF_8, // UTF-8
'utf-8-bom', // UTF-8 with BOM
'utf-16le', // UTF-16 Little Endian 'utf-16le', // UTF-16 Little Endian
'utf-16be', // UTF-16 Big Endian 'utf-16be', // UTF-16 Big Endian
'utf-16le-bom', // UTF-16 Little Endian with BOM
'utf-16be-bom', // UTF-16 Big Endian with BOM
'cp437', // OEM United States (CP-437) 'cp437', // OEM United States (CP-437)
'cp863', // OEM Canadian French (CP-863) 'cp863', // OEM Canadian French (CP-863)
'cp037', // IBM EBCDIC US/Canada (CP-037) 'cp037', // IBM EBCDIC US/Canada (CP-037)
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 con BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian con BOM",
"utf-16be-bom": "UTF-16 Big Endian con BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 avec BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM États-Unis (CP-437)", "cp437": "OEM États-Unis (CP-437)",
"cp863": "OEM Canadien Français (CP-863)", "cp863": "OEM Canadien Français (CP-863)",
"cp037": "IBM EBCDIC États-Unis/Canada (CP-037)", "cp037": "IBM EBCDIC États-Unis/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM 米国 (CP-437)", "cp437": "OEM 米国 (CP-437)",
"cp863": "OEM カナダ系フランス語 (CP-863)", "cp863": "OEM カナダ系フランス語 (CP-863)",
"cp037": "IBM EBCDIC 米国/カナダ (CP-037)", "cp037": "IBM EBCDIC 米国/カナダ (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "BOM ಸಹಿತ UTF-8",
"utf-16le": "UTF-16 ಲಿಟಲ್ ಎಂಡಿಯನ್", "utf-16le": "UTF-16 ಲಿಟಲ್ ಎಂಡಿಯನ್",
"utf-16be": "UTF-16 ಬಿಗ್ ಎಂಡಿಯನ್", "utf-16be": "UTF-16 ಬಿಗ್ ಎಂಡಿಯನ್",
"utf-16le-bom": "BOM ಸಹಿತ UTF-16 ಲಿಟಲ್ ಎಂಡಿಯನ್",
"utf-16be-bom": "BOM ಸಹಿತ UTF-16 ಬಿಗ್ ಎಂಡಿಯನ್",
"cp437": "OEM ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್ (CP-437)", "cp437": "OEM ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್ (CP-437)",
"cp863": "OEM ಕ್ಯಾನಡಿಯನ್ ಫ್ರೆಂಚ್ (CP-863)", "cp863": "OEM ಕ್ಯಾನಡಿಯನ್ ಫ್ರೆಂಚ್ (CP-863)",
"cp037": "IBM EBCDIC ಯುಎಸ್/ಕ್ಯಾನಡಾ (CP-037)", "cp037": "IBM EBCDIC ಯುಎಸ್/ಕ್ಯಾನಡಾ (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 리틀 엔디안", "utf-16le": "UTF-16 리틀 엔디안",
"utf-16be": "UTF-16 빅 엔디안", "utf-16be": "UTF-16 빅 엔디안",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM 미국 (CP-437)", "cp437": "OEM 미국 (CP-437)",
"cp863": "OEM 캐나다 프랑스어 (CP-863)", "cp863": "OEM 캐나다 프랑스어 (CP-863)",
"cp037": "IBM EBCDIC 미국/캐나다 (CP-037)", "cp037": "IBM EBCDIC 미국/캐나다 (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 com BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM Estados Unidos (CP-437)", "cp437": "OEM Estados Unidos (CP-437)",
"cp863": "OEM Francês Canadense (CP-863)", "cp863": "OEM Francês Canadense (CP-863)",
"cp037": "IBM EBCDIC EUA/Canadá (CP-037)", "cp037": "IBM EBCDIC EUA/Canadá (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 z BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian z BOM",
"utf-16be-bom": "UTF-16 Big Endian z BOM",
"cp437": "OEM Združene države (CP-437)", "cp437": "OEM Združene države (CP-437)",
"cp863": "OEM kanadska francoščina (CP-863)", "cp863": "OEM kanadska francoščina (CP-863)",
"cp037": "IBM EBCDIC ZDA/Kanada (CP-037)", "cp037": "IBM EBCDIC ZDA/Kanada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "BOM உடன் UTF-8",
"utf-16le": "UTF-16 லிட்டில் எண்டியன்", "utf-16le": "UTF-16 லிட்டில் எண்டியன்",
"utf-16be": "UTF-16 பிக் எண்டியன்", "utf-16be": "UTF-16 பிக் எண்டியன்",
"utf-16le-bom": "BOM உடன் UTF-16 லிட்டில் எண்டியன்",
"utf-16be-bom": "BOM உடன் UTF-16 பிக் எண்டியன்",
"cp437": "OEM அமெரிக்கா (CP-437)", "cp437": "OEM அமெரிக்கா (CP-437)",
"cp863": "OEM கனடா பிரஞ்சு (CP-863)", "cp863": "OEM கனடா பிரஞ்சு (CP-863)",
"cp037": "IBM EBCDIC அமெரிக்கா/கனடா (CP-037)", "cp037": "IBM EBCDIC அமெரிக்கா/கனடா (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 พร้อม BOM",
"utf-16le": "UTF-16 Endian เล็ก", "utf-16le": "UTF-16 Endian เล็ก",
"utf-16be": "UTF-16 Endian ใหญ่", "utf-16be": "UTF-16 Endian ใหญ่",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM สหรัฐอเมริกา (CP-437)", "cp437": "OEM สหรัฐอเมริกา (CP-437)",
"cp863": "OEM ฝรั่งเศสแคนาดา (CP-863)", "cp863": "OEM ฝรั่งเศสแคนาดา (CP-863)",
"cp037": "IBM EBCDIC สหรัฐอเมริกา/แคนาดา (CP-037)", "cp037": "IBM EBCDIC สหรัฐอเมริกา/แคนาดา (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "BOM ile UTF-8",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "BOM ile UTF-16 Little Endian",
"utf-16be-bom": "BOM ile UTF-16 Big Endian",
"cp437": "OEM Birleşik Devletler (CP-437)", "cp437": "OEM Birleşik Devletler (CP-437)",
"cp863": "OEM Kanada Fransızcası (CP-863)", "cp863": "OEM Kanada Fransızcası (CP-863)",
"cp037": "IBM EBCDIC ABD/Kanada (CP-037)", "cp037": "IBM EBCDIC ABD/Kanada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 with BOM",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian with BOM",
"utf-16be-bom": "UTF-16 Big Endian with BOM",
"cp437": "OEM United States (CP-437)", "cp437": "OEM United States (CP-437)",
"cp863": "OEM Canadian French (CP-863)", "cp863": "OEM Canadian French (CP-863)",
"cp037": "IBM EBCDIC US/Canada (CP-037)", "cp037": "IBM EBCDIC US/Canada (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 带签名",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian 带签名",
"utf-16be-bom": "UTF-16 Big Endian 带签名",
"cp437": "OEM 美国 (CP-437)", "cp437": "OEM 美国 (CP-437)",
"cp863": "OEM 加拿大法语 (CP-863)", "cp863": "OEM 加拿大法语 (CP-863)",
"cp037": "IBM EBCDIC 美国/加拿大 (CP-037)", "cp037": "IBM EBCDIC 美国/加拿大 (CP-037)",
-3
View File
@@ -1353,11 +1353,8 @@
}, },
"encoding": { "encoding": {
"utf-8": "UTF-8", "utf-8": "UTF-8",
"utf-8-bom": "UTF-8 帶簽名",
"utf-16le": "UTF-16 Little Endian", "utf-16le": "UTF-16 Little Endian",
"utf-16be": "UTF-16 Big Endian", "utf-16be": "UTF-16 Big Endian",
"utf-16le-bom": "UTF-16 Little Endian 帶簽名",
"utf-16be-bom": "UTF-16 Big Endian 帶簽名",
"cp437": "OEM 美國 (CP-437)", "cp437": "OEM 美國 (CP-437)",
"cp863": "OEM 加拿大法語 (CP-863)", "cp863": "OEM 加拿大法語 (CP-863)",
"cp037": "IBM EBCDIC 美國/加拿大 (CP-037)", "cp037": "IBM EBCDIC 美國/加拿大 (CP-037)",