-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Description
Summary
I can not make charset work. I am making request for a page that deals with charset=iso-8859-1, and even setting { charset: 'latin1' }, correct decoding does not happen.
I'm following this #869
I've tried latin1 and latin-1
// url to open bases results
const url = `http://www.stf.jus.br/portal/jurisprudencia/listarJurisprudencia.asp?s1=%28SAUDE+COMPLEMENTAR%29&base=baseAcordaos&url=http://tinyurl.com/y9e68odp`
// request first page
axios.get(url, {}, { charset: 'latin-1' })
.then(({ data }) => {
console.log(data)
})Context
- axios version: v0.18.0
- Environment: node v10.1.0
Thank you
horoscop, fpilee, matcabgomes, demtario, Eschon and 1 more
Metadata
Metadata
Assignees
Labels
No labels