Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion detector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestDetector(t *testing.T) {
{"8859_1_fr.html", true, "ISO-8859-1", "fr"},
{"8859_1_pt.html", true, "ISO-8859-1", "pt"},
{"shift_jis.html", true, "Shift_JIS", "ja"},
{"gb18030.html", true, "GB-18030", "zh"},
{"gb18030.html", true, "GB18030", "zh"},
{"euc_jp.html", true, "EUC-JP", "ja"},
{"euc_kr.html", true, "EUC-KR", "ko"},
{"big5.html", true, "Big5", "zh"},
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ func ExampleTextDetector() {
result.Language)
}
// Output:
// Detected charset is GB-18030, language is zh
// Detected charset is GB18030, language is zh
}
2 changes: 1 addition & 1 deletion multi_byte.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ var commonChars_gb_18030 = []uint16{

func newRecognizer_gb_18030() *recognizerMultiByte {
return &recognizerMultiByte{
"GB-18030",
"GB18030",
"zh",
charDecoder_gb_18030{},
commonChars_gb_18030,
Expand Down