1
0
鏡像自 https://github.com/aclindsa/ofxgo.git 已同步 2025-09-18 05:23:26 -04:00

Make an empty CharsetReader

This gets around weird errors when the <?xml processing instruction has
things like utf-16 in it. This should maybe be fixed another way later.
此提交包含在:
2017-03-13 21:10:43 -04:00
父節點 b90c3e0dcd
當前提交 59c8bce519

3
ofx.go
查看文件

@@ -339,6 +339,9 @@ func (or *Response) Unmarshal(reader io.Reader, xmlVersion bool) error {
decoder.Strict = false
decoder.AutoCloseAfterCharData = ofxLeafElements
}
decoder.CharsetReader = func(charset string, input io.Reader) (io.Reader, error) {
return input, nil
}
if xmlVersion {
// parse the xml header