Re: [go-nuts] Regarding Invalid UTF-8 characters

2019-01-25 Thread Durga Someswararao G
Thanks. On Fri, Jan 25, 2019 at 2:54 PM Wagner Riffel wrote: > there is nothing to do with special characters in the example you > shown, your xml data is just invalid xml, you're missing root element, > just add it and it should work: > CPUêÿ > btw here is a short version of your program on

Re: [go-nuts] Regarding Invalid UTF-8 characters

2019-01-25 Thread Wagner Riffel
there is nothing to do with special characters in the example you shown, your xml data is just invalid xml, you're missing root element, just add it and it should work: CPUêÿ btw here is a short version of your program on playground, https://play.golang.org/p/PhKgVXIcWZl On Fri, Jan 25, 2019 at

[go-nuts] Regarding Invalid UTF-8 characters

2019-01-25 Thread durgasomeswararao532
Hi, How can I handle special characters while using unmarshalling. I am getting some special charactes in my xml data (like this eg êÿÿ ) and golang throwing xml syntax error invalid UTF-8. Any please suggest how to handle this case. I tried to handle this xml decoder like this: //