Lines Matching refs:Encoding
18 <?xml version="1.0" encoding="UTF-8"?>
38 ProcInst{"xml", []byte(`version="1.0" encoding="UTF-8"`)},
75 ProcInst{"xml", []byte(`version="1.0" encoding="UTF-8"`)},
111 <?xml version="1.0" encoding="x-testing-uppercase"?>
116 ProcInst{"xml", []byte(`version="1.0" encoding="x-testing-uppercase"`)},
274 const encoding = "x-testing-uppercase"
275 if !strings.Contains(err.Error(), encoding) {
277 encoding, err)
657 {`version="1.0" encoding="utf-8"`, [2]string{"1.0", "utf-8"}},
658 {`version="1.0" encoding='utf-8'`, [2]string{"1.0", "utf-8"}},
659 {`version="1.0" encoding='utf-8' `, [2]string{"1.0", "utf-8"}},
660 {`version="1.0" encoding=utf-8`, [2]string{"1.0", ""}},
661 {`encoding="FOO" `, [2]string{"", "FOO"}},
669 if got := procInst("encoding", test.input); got != test.expect[1] {
670 t.Errorf("procInst(encoding, %q) = %q; want %q", test.input, got, test.expect[1])
774 {`<?xml encoding="UtF-8" version="1.0"?><root/>`, true},
775 {`<?xml encoding="UTF-8" version="1.0"?><root/>`, true},
776 {`<?xml encoding="utf-8" version="1.0"?><root/>`, true},
777 {`<?xml encoding="uuu-9" version="1.0"?><root/>`, false},
792 t.Errorf("%q: Encoding charset: expected no error, got %s", tc.s, err)
796 t.Errorf("%q: Encoding charset: expected error, got nil", tc.s)