Re: [go-nuts] http.Get not retrieving properly encoded page compared to browser

2018-12-29 Thread Dan Kortschak
It appears that this is due to the browser not knowing that the downloaded file is UTF-8; adding  to the page fixes the problem. So this is not a Go / "net/http" issue. On Sun, 2018-12-30 at 11:05 +1030, Dan Kortschak wrote: > I am putting together a tiny tool to archive the go.science G+ group

[go-nuts] http.Get not retrieving properly encoded page compared to browser

2018-12-29 Thread Dan Kortschak
I am putting together a tiny tool to archive the go.science G+ group for future archeology. However, I have run into an issue that I don't understand and so don't know how to fix. The code is here: https://play.golang.org/p/1vVm5dvVueS This takes in a the Takeout JSON for the community's posts