From 9d275a305177414d6d69f70ab6683e9babff65cf Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 1 Mar 2026 15:27:03 +0800 Subject: [PATCH] merge UTF-8 and UTF-16 encodings with or without BOM, with BOM automatically detected and handled --- ...stom_transaction_data_dsv_file_importer.go | 101 +++++++++--------- src/consts/file.ts | 3 - src/locales/de.json | 3 - src/locales/en.json | 3 - src/locales/es.json | 3 - src/locales/fr.json | 3 - src/locales/it.json | 3 - src/locales/ja.json | 3 - src/locales/kn.json | 3 - src/locales/ko.json | 3 - src/locales/nl.json | 3 - src/locales/pt_BR.json | 3 - src/locales/ru.json | 3 - src/locales/sl.json | 3 - src/locales/ta.json | 3 - src/locales/th.json | 3 - src/locales/tr.json | 3 - src/locales/uk.json | 3 - src/locales/vi.json | 3 - src/locales/zh_Hans.json | 3 - src/locales/zh_Hant.json | 3 - 21 files changed, 49 insertions(+), 112 deletions(-) diff --git a/pkg/converters/custom/custom_transaction_data_dsv_file_importer.go b/pkg/converters/custom/custom_transaction_data_dsv_file_importer.go index 81b37b99..c55d24df 100644 --- a/pkg/converters/custom/custom_transaction_data_dsv_file_importer.go +++ b/pkg/converters/custom/custom_transaction_data_dsv_file_importer.go @@ -33,58 +33,55 @@ var supportedFileTypeSeparators = map[string]rune{ } var supportedFileEncodings = map[string]encoding.Encoding{ - "utf-8": unicode.UTF8, // UTF-8 - "utf-8-bom": unicode.UTF8BOM, // UTF-8 with BOM - "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-16le-bom": unicode.UTF16(unicode.LittleEndian, unicode.ExpectBOM), // UTF-16 Little Endian with BOM - "utf-16be-bom": unicode.UTF16(unicode.BigEndian, unicode.ExpectBOM), // UTF-16 Big Endian with BOM - "cp437": charmap.CodePage437, // OEM United States (CP-437) - "cp863": charmap.CodePage863, // OEM Canadian French (CP-863) - "cp037": charmap.CodePage037, // IBM EBCDIC US/Canada (CP-037) - "cp1047": charmap.CodePage1047, // IBM EBCDIC Open Systems (CP-1047) - "cp1140": charmap.CodePage1140, // IBM EBCDIC US/Canada with Euro (CP-1140) - "iso-8859-1": charmap.ISO8859_1, // Western European (ISO-8859-1) - "cp850": charmap.CodePage850, // Western European (CP-850) - "cp858": charmap.CodePage858, // Western European with Euro (CP-858) - "windows-1252": charmap.Windows1252, // Western European (Windows-1252) - "iso-8859-15": charmap.ISO8859_15, // Western European (ISO-8859-15) - "iso-8859-4": charmap.ISO8859_4, // North European (ISO-8859-4) - "iso-8859-10": charmap.ISO8859_10, // North European (ISO-8859-10) - "cp865": charmap.CodePage865, // North European (CP-865) - "iso-8859-2": charmap.ISO8859_2, // Central European (ISO-8859-2) - "cp852": charmap.CodePage852, // Central European (CP-852) - "windows-1250": charmap.Windows1250, // Central European (Windows-1250) - "iso-8859-14": charmap.ISO8859_14, // Celtic (ISO-8859-14) - "iso-8859-3": charmap.ISO8859_3, // South European (ISO-8859-3) - "cp860": charmap.CodePage860, // Portuguese (CP-860) - "iso-8859-7": charmap.ISO8859_7, // Greek (ISO-8859-7) - "windows-1253": charmap.Windows1253, // Greek (Windows-1253) - "iso-8859-9": charmap.ISO8859_9, // Turkish (ISO-8859-9) - "windows-1254": charmap.Windows1254, // Turkish (Windows-1254) - "iso-8859-13": charmap.ISO8859_13, // Baltic (ISO-8859-13) - "windows-1257": charmap.Windows1257, // Baltic (Windows-1257) - "iso-8859-16": charmap.ISO8859_16, // South-Eastern European (ISO-8859-16) - "iso-8859-5": charmap.ISO8859_5, // Cyrillic (ISO-8859-5) - "cp855": charmap.CodePage855, // Cyrillic (CP-855) - "cp866": charmap.CodePage866, // Cyrillic (CP-866) - "windows-1251": charmap.Windows1251, // Cyrillic (Windows-1251) - "koi8r": charmap.KOI8R, // Cyrillic (KOI8-R) - "koi8u": charmap.KOI8U, // Cyrillic (KOI8-U) - "iso-8859-6": charmap.ISO8859_6, // Arabic (ISO-8859-6) - "windows-1256": charmap.Windows1256, // Arabic (Windows-1256) - "iso-8859-8": charmap.ISO8859_8, // Hebrew (ISO-8859-8) - "cp862": charmap.CodePage862, // Hebrew (CP-862) - "windows-1255": charmap.Windows1255, // Hebrew (Windows-1255) - "windows-874": charmap.Windows874, // Thai (Windows-874) - "windows-1258": charmap.Windows1258, // Vietnamese (Windows-1258) - "gb18030": simplifiedchinese.GB18030, // Chinese (Simplified, GB18030) - "gbk": simplifiedchinese.GBK, // Chinese (Simplified, GBK) - "big5": traditionalchinese.Big5, // Chinese (Traditional, Big5) - "euc-kr": korean.EUCKR, // Korean (EUC-KR) - "euc-jp": japanese.EUCJP, // Japanese (EUC-JP) - "iso-2022-jp": japanese.ISO2022JP, // Japanese (ISO-2022-JP) - "shift_jis": japanese.ShiftJIS, // Japanese (Shift JIS) + "utf-8": unicode.UTF8BOM, // UTF-8 + "utf-16le": unicode.UTF16(unicode.LittleEndian, unicode.UseBOM), // UTF-16 Little Endian + "utf-16be": unicode.UTF16(unicode.BigEndian, unicode.UseBOM), // UTF-16 Big Endian + "cp437": charmap.CodePage437, // OEM United States (CP-437) + "cp863": charmap.CodePage863, // OEM Canadian French (CP-863) + "cp037": charmap.CodePage037, // IBM EBCDIC US/Canada (CP-037) + "cp1047": charmap.CodePage1047, // IBM EBCDIC Open Systems (CP-1047) + "cp1140": charmap.CodePage1140, // IBM EBCDIC US/Canada with Euro (CP-1140) + "iso-8859-1": charmap.ISO8859_1, // Western European (ISO-8859-1) + "cp850": charmap.CodePage850, // Western European (CP-850) + "cp858": charmap.CodePage858, // Western European with Euro (CP-858) + "windows-1252": charmap.Windows1252, // Western European (Windows-1252) + "iso-8859-15": charmap.ISO8859_15, // Western European (ISO-8859-15) + "iso-8859-4": charmap.ISO8859_4, // North European (ISO-8859-4) + "iso-8859-10": charmap.ISO8859_10, // North European (ISO-8859-10) + "cp865": charmap.CodePage865, // North European (CP-865) + "iso-8859-2": charmap.ISO8859_2, // Central European (ISO-8859-2) + "cp852": charmap.CodePage852, // Central European (CP-852) + "windows-1250": charmap.Windows1250, // Central European (Windows-1250) + "iso-8859-14": charmap.ISO8859_14, // Celtic (ISO-8859-14) + "iso-8859-3": charmap.ISO8859_3, // South European (ISO-8859-3) + "cp860": charmap.CodePage860, // Portuguese (CP-860) + "iso-8859-7": charmap.ISO8859_7, // Greek (ISO-8859-7) + "windows-1253": charmap.Windows1253, // Greek (Windows-1253) + "iso-8859-9": charmap.ISO8859_9, // Turkish (ISO-8859-9) + "windows-1254": charmap.Windows1254, // Turkish (Windows-1254) + "iso-8859-13": charmap.ISO8859_13, // Baltic (ISO-8859-13) + "windows-1257": charmap.Windows1257, // Baltic (Windows-1257) + "iso-8859-16": charmap.ISO8859_16, // South-Eastern European (ISO-8859-16) + "iso-8859-5": charmap.ISO8859_5, // Cyrillic (ISO-8859-5) + "cp855": charmap.CodePage855, // Cyrillic (CP-855) + "cp866": charmap.CodePage866, // Cyrillic (CP-866) + "windows-1251": charmap.Windows1251, // Cyrillic (Windows-1251) + "koi8r": charmap.KOI8R, // Cyrillic (KOI8-R) + "koi8u": charmap.KOI8U, // Cyrillic (KOI8-U) + "iso-8859-6": charmap.ISO8859_6, // Arabic (ISO-8859-6) + "windows-1256": charmap.Windows1256, // Arabic (Windows-1256) + "iso-8859-8": charmap.ISO8859_8, // Hebrew (ISO-8859-8) + "cp862": charmap.CodePage862, // Hebrew (CP-862) + "windows-1255": charmap.Windows1255, // Hebrew (Windows-1255) + "windows-874": charmap.Windows874, // Thai (Windows-874) + "windows-1258": charmap.Windows1258, // Vietnamese (Windows-1258) + "gb18030": simplifiedchinese.GB18030, // Chinese (Simplified, GB18030) + "gbk": simplifiedchinese.GBK, // Chinese (Simplified, GBK) + "big5": traditionalchinese.Big5, // Chinese (Traditional, Big5) + "euc-kr": korean.EUCKR, // Korean (EUC-KR) + "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{ diff --git a/src/consts/file.ts b/src/consts/file.ts index 1095cc14..7486c066 100644 --- a/src/consts/file.ts +++ b/src/consts/file.ts @@ -13,11 +13,8 @@ export const UTF_8 = 'utf-8'; export const SUPPORTED_FILE_ENCODINGS: string[] = [ UTF_8, // UTF-8 - 'utf-8-bom', // UTF-8 with BOM 'utf-16le', // UTF-16 Little 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) 'cp863', // OEM Canadian French (CP-863) 'cp037', // IBM EBCDIC US/Canada (CP-037) diff --git a/src/locales/de.json b/src/locales/de.json index 2219aa82..9722ec29 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/en.json b/src/locales/en.json index cb198c3c..69dabbe8 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/es.json b/src/locales/es.json index b6080281..4520de23 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 con BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/fr.json b/src/locales/fr.json index 6f7bf0ab..90cf10b7 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 avec BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadien Français (CP-863)", "cp037": "IBM EBCDIC États-Unis/Canada (CP-037)", diff --git a/src/locales/it.json b/src/locales/it.json index 48b96c49..9e05f6f4 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/ja.json b/src/locales/ja.json index d67fc5a2..3a1559d5 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM カナダ系フランス語 (CP-863)", "cp037": "IBM EBCDIC 米国/カナダ (CP-037)", diff --git a/src/locales/kn.json b/src/locales/kn.json index 62b6532f..6ebe84a3 100644 --- a/src/locales/kn.json +++ b/src/locales/kn.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "BOM ಸಹಿತ UTF-8", "utf-16le": "UTF-16 ಲಿಟಲ್ ಎಂಡಿಯನ್", "utf-16be": "UTF-16 ಬಿಗ್ ಎಂಡಿಯನ್", - "utf-16le-bom": "BOM ಸಹಿತ UTF-16 ಲಿಟಲ್ ಎಂಡಿಯನ್", - "utf-16be-bom": "BOM ಸಹಿತ UTF-16 ಬಿಗ್ ಎಂಡಿಯನ್", "cp437": "OEM ಯುನೈಟೆಡ್ ಸ್ಟೇಟ್ಸ್ (CP-437)", "cp863": "OEM ಕ್ಯಾನಡಿಯನ್ ಫ್ರೆಂಚ್ (CP-863)", "cp037": "IBM EBCDIC ಯುಎಸ್/ಕ್ಯಾನಡಾ (CP-037)", diff --git a/src/locales/ko.json b/src/locales/ko.json index 2ebad810..b1f63bd6 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "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)", "cp863": "OEM 캐나다 프랑스어 (CP-863)", "cp037": "IBM EBCDIC 미국/캐나다 (CP-037)", diff --git a/src/locales/nl.json b/src/locales/nl.json index 3598d1c3..3829f805 100644 --- a/src/locales/nl.json +++ b/src/locales/nl.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/pt_BR.json b/src/locales/pt_BR.json index 7566af4f..69c579d6 100644 --- a/src/locales/pt_BR.json +++ b/src/locales/pt_BR.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 com BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Francês Canadense (CP-863)", "cp037": "IBM EBCDIC EUA/Canadá (CP-037)", diff --git a/src/locales/ru.json b/src/locales/ru.json index b1d42430..edbe91df 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/sl.json b/src/locales/sl.json index 85b33ff1..e08c1d17 100644 --- a/src/locales/sl.json +++ b/src/locales/sl.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 z BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM kanadska francoščina (CP-863)", "cp037": "IBM EBCDIC ZDA/Kanada (CP-037)", diff --git a/src/locales/ta.json b/src/locales/ta.json index d5d88e3a..e9f3aaf5 100644 --- a/src/locales/ta.json +++ b/src/locales/ta.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "BOM உடன் UTF-8", "utf-16le": "UTF-16 லிட்டில் எண்டியன்", "utf-16be": "UTF-16 பிக் எண்டியன்", - "utf-16le-bom": "BOM உடன் UTF-16 லிட்டில் எண்டியன்", - "utf-16be-bom": "BOM உடன் UTF-16 பிக் எண்டியன்", "cp437": "OEM அமெரிக்கா (CP-437)", "cp863": "OEM கனடா பிரஞ்சு (CP-863)", "cp037": "IBM EBCDIC அமெரிக்கா/கனடா (CP-037)", diff --git a/src/locales/th.json b/src/locales/th.json index 4c1a5329..079e8d65 100644 --- a/src/locales/th.json +++ b/src/locales/th.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 พร้อม BOM", "utf-16le": "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)", "cp863": "OEM ฝรั่งเศสแคนาดา (CP-863)", "cp037": "IBM EBCDIC สหรัฐอเมริกา/แคนาดา (CP-037)", diff --git a/src/locales/tr.json b/src/locales/tr.json index bc139f08..38110cca 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "BOM ile UTF-8", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Kanada Fransızcası (CP-863)", "cp037": "IBM EBCDIC ABD/Kanada (CP-037)", diff --git a/src/locales/uk.json b/src/locales/uk.json index 4e6116f3..c521836b 100644 --- a/src/locales/uk.json +++ b/src/locales/uk.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/vi.json b/src/locales/vi.json index 5130f653..1e405183 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 with BOM", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM Canadian French (CP-863)", "cp037": "IBM EBCDIC US/Canada (CP-037)", diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json index a3d1b0a6..ea5e0620 100644 --- a/src/locales/zh_Hans.json +++ b/src/locales/zh_Hans.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 带签名", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM 加拿大法语 (CP-863)", "cp037": "IBM EBCDIC 美国/加拿大 (CP-037)", diff --git a/src/locales/zh_Hant.json b/src/locales/zh_Hant.json index b9ceacea..cf748654 100644 --- a/src/locales/zh_Hant.json +++ b/src/locales/zh_Hant.json @@ -1353,11 +1353,8 @@ }, "encoding": { "utf-8": "UTF-8", - "utf-8-bom": "UTF-8 帶簽名", "utf-16le": "UTF-16 Little 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)", "cp863": "OEM 加拿大法語 (CP-863)", "cp037": "IBM EBCDIC 美國/加拿大 (CP-037)",