diff --git a/detector_test.go b/detector_test.go index f9fce01..ffecac2 100644 --- a/detector_test.go +++ b/detector_test.go @@ -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"}, diff --git a/example_test.go b/example_test.go index 02389cf..fc47910 100644 --- a/example_test.go +++ b/example_test.go @@ -23,5 +23,5 @@ func ExampleTextDetector() { result.Language) } // Output: - // Detected charset is GB-18030, language is zh + // Detected charset is GB18030, language is zh } diff --git a/multi_byte.go b/multi_byte.go index 1fab34c..b5cdf3d 100644 --- a/multi_byte.go +++ b/multi_byte.go @@ -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,