Skip to content

Commit 4fe84a9

Browse files
authored
Merge pull request #191 from fdelapena/gb18030
Use proper internal encoding name for detected GB18030
2 parents e1d6d20 + 1bc9e7e commit 4fe84a9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/reader_util.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ std::vector<std::string> ReaderUtil::DetectEncodings(const std::string& database
154154
encodings.push_back("ibm-943_P15A-2003"); // Japanese with \ as backslash
155155
} else if (encoding == "EUC-KR") {
156156
encodings.push_back("windows-949-2000"); // Korean with \ as backlash
157+
} else if (encoding == "GB18030") {
158+
encodings.push_back("windows-936-2000"); // Simplified Chinese
157159
} else if (encoding == "ISO-8859-1" || encoding == "windows-1252") {
158160
encodings.push_back("ibm-5348_P100-1997"); // Occidental with Euro
159161
} else if (encoding == "ISO-8859-2" || encoding == "windows-1250") {

0 commit comments

Comments
 (0)