Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(HTTP Request Node): Respect the original encoding of the incoming response #9869

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

netroy
Copy link
Member

@netroy netroy commented Jun 26, 2024

Summary

Almost all of our response handling code in nodes was ignoring the encoding defined on the content-type header. This PR updates all of this code to respect the encoding of the original document.

Before the fix:
image

After the fix:
image

PS: This does not fix the issue in v1 and v2 of the HttpRequest node. I tried, but it turned out to be too messy to be worth fixing.

Related Linear tickets, Github issues, and Community forum posts

Fixes #8799

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team node/improvement New feature or request labels Jun 26, 2024
@netroy netroy marked this pull request as draft June 26, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP Request decode Mime Type: text/html; charset=ISO-8859-1
1 participant