You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I need to scan a website with latin1 encoding.
The site's mimetype is correct.
However, the text has encoding errors.
I already found a way around it.
I forced the data as a file and placed a block of code afterwards.
//console.log("$binary",$binary) //const data = $binary.data.data //data.data not exist other bug //console.log("item.binary",item.binary) const binary = $input.item.binary const data = binary.data.data const bin = Buffer.from(data,'Base64') let text = '' if (binary.data.mimeType.includes('ISO-8859')){ text = bin.toString('latin1') } else { text = bin.toString() } return {data:text}
To Reproduce
Include "Request HTML" do a GET to one page with mimetype
Work around
I hid the output but believe me it is correctly coded.
Expected behavior
I expected not to need this outline, without there being errors in the text such as:
Regi�o => Região
gr�tis => grátis
Operating System
docker.n8n.io/n8nio/n8n
n8n Version
1.29.1
Node.js Version
v18.19.1
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered:
eduardomazolini
changed the title
HTTP Request decodeMime Type: text/html; charset=ISO-8859-1
HTTP Request decode Mime Type: text/html; charset=ISO-8859-1
Mar 4, 2024
Bug Description
Hello!
I need to scan a website with latin1 encoding.
The site's mimetype is correct.
However, the text has encoding errors.
I already found a way around it.
I forced the data as a file and placed a block of code afterwards.
//console.log("$binary",$binary) //const data = $binary.data.data //data.data not exist other bug //console.log("item.binary",item.binary) const binary = $input.item.binary const data = binary.data.data const bin = Buffer.from(data,'Base64') let text = '' if (binary.data.mimeType.includes('ISO-8859')){ text = bin.toString('latin1') } else { text = bin.toString() } return {data:text}
To Reproduce
I hid the output but believe me it is correctly coded.
Expected behavior
I expected not to need this outline, without there being errors in the text such as:
Regi�o => Região
gr�tis => grátis
Operating System
docker.n8n.io/n8nio/n8n
n8n Version
1.29.1
Node.js Version
v18.19.1
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: