Unmarshal an ISO-8859-1 XML input in Go
Updated answer for 2015 & beyond: import ( “encoding/xml” “golang.org/x/net/html/charset” ) reader := bytes.NewReader(theXml) decoder := xml.NewDecoder(reader) decoder.CharsetReader = charset.NewReaderLabel err = decoder.Decode(&parsed)