Skip to content

Commit 3ce26af

Browse files
author
gpmn
committed
in progress
1 parent bbe42d9 commit 3ce26af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

datadictionary/datadictionary.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package datadictionary
33

44
import (
55
"encoding/xml"
6+
"io"
67
"os"
78
)
89

@@ -326,6 +327,9 @@ func Parse(path string) (*DataDictionary, error) {
326327

327328
doc := new(XMLDoc)
328329
decoder := xml.NewDecoder(xmlFile)
330+
decoder.CharsetReader = func(encoding string, input io.Reader) (io.Reader, error) {
331+
return input, nil
332+
}
329333
if err := decoder.Decode(doc); err != nil {
330334
return nil, err
331335
}

0 commit comments

Comments
 (0)