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

Testling should specify the encoding when serving the page/bundle. #34

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robotlolita
Copy link

Since Testling didn't specify the charset, this led to a plethora of random encoding errors if the libraries used anything outside of the ASCII charset. The same code would work or not on browsers with the same capabilities depending on whether the browser decided to treat the page as UTF-8 or not.

Specifying the charset gets rid of all that and gives us predictable behaviours. Yay

Since Testling didn't specify the charset, this led to a plethora of random encoding errors if the libraries used anything outside of the ASCII charset. The same code would work or not on browsers with the same capabilities depending on whether the browser decided to treat the page as UTF-8 or not.

Specifying the charset gets rid of all that and gives us predictable behaviours. Yay
@ljharb
Copy link
Collaborator

ljharb commented May 4, 2013

+1, this will help!

@ljharb
Copy link
Collaborator

ljharb commented Jan 10, 2020

@robotlolita would you mind checking "allow edits" on the RHS of this PR?

@ljharb ljharb marked this pull request as draft September 19, 2022 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants