You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document specifies that "XML processors should match character encoding names in a case-insensitive way".
I plan to propose a patch doing just that, as soon as I install the golang dev tools (it is kind of my first meeting with Go).
About the implementation, would you just write a simple comparison such as strings.ToUpper(enc) == "UTF-8", or would you prefer using something like the charset lookup function?
Thanks.
The text was updated successfully, but these errors were encountered:
I confirm it does! I have spent an entire hour building everything from go to my app into a clean docker container. :D
When I checkout the commit before yours, I reproduce my issue ; when I checkout your commit, it works fine.
ianlancetaylor
changed the title
encoding/xml Character encoding detection should be case insensitive
encoding/xml: Character encoding detection should be case insensitive
Sep 3, 2015
rsc
changed the title
encoding/xml: Character encoding detection should be case insensitive
encoding/xml: character encoding detection should be case insensitive
Nov 5, 2015
Hello,
As discussed in the Google group, I encountered an issue while parsing an XML document claiming to be
Utf-8
encoded, so neitherUTF-8
norutf-8
as expected by the encoding/xml library.This document specifies that "XML processors should match character encoding names in a case-insensitive way".
I plan to propose a patch doing just that, as soon as I install the golang dev tools (it is kind of my first meeting with Go).
About the implementation, would you just write a simple comparison such as
strings.ToUpper(enc) == "UTF-8"
, or would you prefer using something like the charset lookup function?Thanks.
The text was updated successfully, but these errors were encountered: