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

Events: Set wporg_events charset to latin1 to fix Mojibake #1050

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

iandunn
Copy link
Member

@iandunn iandunn commented Sep 20, 2023

Fixes #1043

The wporg_events table uses the latin1 charset, so we need to set the MySQL connection to use that. Otherwise the results are Mojibake because they're decoded with a different charset than they were encoded with.

See these tickets for a similar situation, but in the opposite direction:

@iandunn iandunn added this to the Pilots Events: Promotion milestone Sep 20, 2023
@iandunn iandunn self-assigned this Sep 20, 2023
@iandunn iandunn force-pushed the fix-landing-mojibake branch from c6eb9f8 to a13f3db Compare September 20, 2023 19:58
@iandunn iandunn force-pushed the fix-landing-mojibake branch from a13f3db to 6f4420b Compare September 20, 2023 20:02
@iandunn iandunn changed the title Events: Set the charset for wporg_events to latin1 to fix Mojibake Events: Set wporg_events charset to latin1 to fix Mojibake Sep 20, 2023
@iandunn iandunn changed the title Events: Set wporg_events charset to latin1 to fix Mojibake Events: Set wporg_events charset to latin1 to fix Mojibake Sep 20, 2023
@iandunn iandunn marked this pull request as ready for review September 20, 2023 20:03
@iandunn iandunn merged commit e4f6df9 into production Sep 20, 2023
3 checks passed
@iandunn iandunn deleted the fix-landing-mojibake branch September 20, 2023 20:03
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.

Diacritics not displayed correctly on landing pages
1 participant