Skip to content

fix(encoding): set content encoding to UTF-8 - #140

Merged
line-o merged 2 commits into
mainfrom
charsets
Sep 2, 2026
Merged

fix(encoding): set content encoding to UTF-8#140
line-o merged 2 commits into
mainfrom
charsets

Conversation

@DrRataplan

Copy link
Copy Markdown
Contributor

This prevents endpoints serving non-latin scripts to display properly. Without the UTF-8 encoding the encoding will be interpreted as something else, resulting in so-called mojibake.

@line-o

line-o commented Aug 27, 2026

Copy link
Copy Markdown
Member

I have a hard time seeing the actual changes on my phone because the GitHub app does not have the option to ignore whitespace changes. Any chance splitting this PR up in a formatting followed by the change or the other way around? Whatever is simpler.

This prevents endpoints serving non-latin scripts to display properly. Without the UTF-8 encoding
the encoding will be interpreted as something else, resulting in so-called mojibake.
@DrRataplan

Copy link
Copy Markdown
Contributor Author

Redid it. If you want I can open a prettier PR in a bit?

@line-o line-o left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am in favour of pulling this in. I would like to discuss some details beforehand, though.
Could you have a look at my comments?

Comment thread content/router.xql
Comment thread test/app/modules/api.xql Outdated
Comment thread test/app/api.json
Comment thread test/charset.test.js
@DrRataplan
DrRataplan force-pushed the charsets branch 2 times, most recently from c126c31 to 016e8ae Compare September 1, 2026 09:11
@line-o

line-o commented Sep 1, 2026

Copy link
Copy Markdown
Member

The tests do no longer pass @DrRataplan :/

@line-o line-o left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@line-o
line-o merged commit 790764c into main Sep 2, 2026
8 of 12 checks passed
@line-o
line-o deleted the charsets branch September 2, 2026 09:20
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants