The correct iana name for GB18030 is without the dash

See http://www.iana.org/assignments/charset-reg/GB18030
This commit is contained in:
Peter Smit
2014-12-22 10:32:37 +02:00
parent 3af4cd4741
commit ad5fc6db67
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"},
+1 -1
View File
@@ -23,5 +23,5 @@ func ExampleTextDetector() {
result.Language)
}
// Output:
// Detected charset is GB-18030, language is zh
// Detected charset is GB18030, language is zh
}
+1 -1
View File
@@ -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,