Skip to content

Commit

Permalink
use reader from golang.org charset lib
Browse files Browse the repository at this point in the history
  • Loading branch information
chvish committed Jul 19, 2020
1 parent 12844dd commit 904177b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml/xml2rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func xml2RPC(xmlraw string, rpc interface{}) error {
// Unmarshal raw XML into the temporal structure
var ret response
decoder := xml.NewDecoder(bytes.NewReader([]byte(xmlraw)))
decoder.CharsetReader = charset.NewReader
decoder.CharsetReader = charset.NewReaderLabel
err := decoder.Decode(&ret)
if err != nil {
return FaultDecode
Expand Down

0 comments on commit 904177b

Please sign in to comment.