-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCharEncoding.swift
61 lines (55 loc) · 1.96 KB
/
CharEncoding.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// CharEncoding.swift
// iina
//
// Created by lhc on 25/10/2016.
// Copyright © 2016 lhc. All rights reserved.
//
import Foundation
class CharEncoding {
static let list: [String: String] = [
"Auto": "auto",
"Universal (UTF-8)": "UTF-8",
"Universal (UTF-16)": "UTF-16",
"Universal (UTF-16BE)": "UTF-16BE",
"Universal (UTF-16LE)": "UTF-16LE",
"Arabic (ISO-8859-6)": "ISO-8859-6",
"Arabic (WINDOWS-1256)": "WINDOWS-1256",
"Baltic (LATIN7)": "LATIN7",
"Baltic (WINDOWS-1257)": "WINDOWS-1257",
"Celtic (LATIN8)": "LATIN8",
"Cyrillic (ISO-8859-5)": "ISO-8859-5",
"Cyrillic (WINDOWS-1251)": "WINDOWS-1251",
"Eastern European (ISO-8859-2)": "ISO-8859-2",
"Eastern European (WINDOWS-1252)": "WINDOWS-1252",
"Greek (ISO-8859-7)": "ISO-8859-7",
"Greek (WINDOWS-1253)": "WINDOWS-1253",
"Hebrew (ISO-8859-8)": "ISO-8859-8",
"Hebrew (WINDOWS-1255)": "WINDOWS-1255",
"Japanese (SHIFT-JIS)": "SHIFT-JIS",
"Japanese (ISO-2022-JP-2)": "ISO-2022-JP-2",
"Korean (EUC-KR)": "EUC-KR",
"Korean (CP949)": "CP949",
"Korean (ISO-2022-KR)": "ISO-2022-KR",
"Nordic (LATIN6)": "LATIN6",
"North European (LATIN4)": "LATIN4",
"Russian (KOI8-R)": "KOI8-R",
"Simplified Chinese (GB2312)": "GB2312",
"Simplified Chinese (GB18030)": "GB18030",
"Simplified Chinese (ISO-2022-CN-EXT)": "ISO-2022-CN-EXT",
"South European (LATIN3)": "LATIN3",
"South-Eastern European (LATIN10)": "LATIN10",
"Thai (TIS-620)": "TIS-620",
"Thai (WINDOWS-874)": "WINDOWS-874",
"Traditional Chinese (EUC-TW)": "EUC-TW",
"Traditional Chinese (BIG5)": "BIG5",
"Traditional Chinese (BIG5-HKSCS)": "BIG5-HKSCS",
"Turkish (LATIN5)": "LATIN5",
"Turkish (WINDOWS-1254)": "WINDOWS-1254",
"Ukrainian (KOI8-U)": "KOI8-U",
"Vietnamese (WINDOWS-1258)": "WINDOWS-1258",
"Vietnamese (VISCII)": "VISCII",
"Western European (LATIN1)": "LATIN1",
"Western European": "LATIN-9"
];
}