Skip to content

Sanitize UTF-8 in spoiler log, hints, and save JSON.#6769

Open
RaccoonCloud wants to merge 1 commit into
HarbourMasters:developfrom
RaccoonCloud:feature/utf8-spoiler-json
Open

Sanitize UTF-8 in spoiler log, hints, and save JSON.#6769
RaccoonCloud wants to merge 1 commit into
HarbourMasters:developfrom
RaccoonCloud:feature/utf8-spoiler-json

Conversation

@RaccoonCloud

@RaccoonCloud RaccoonCloud commented Jun 18, 2026

Copy link
Copy Markdown

Non-English option text (curly quotes, accents, etc.) was producing invalid JSON and breaking seed gen/regen on some locales. Strings get run through SohUtils::SanitizeUtf8 before hitting jsonData or save files.

Split out from split-songs PR #6627 for separate review.

Build Artifacts

Non-English option text (curly quotes, accents, etc.) was producing
invalid JSON and breaking seed gen/regen on some locales. Strings get
run through SohUtils::SanitizeUtf8 before hitting jsonData or save files.

Split out from split-songs PR HarbourMasters#6627 for separate review.
@mergify

mergify Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@jeromkiller

Copy link
Copy Markdown
Member

Looks like this makes sure any utf-8 characters that may have been cut off get removed?
I know that's currently an issue on the AP branch when players use accented characters in their slot names.
Exciting stuff 👍

@serprex

serprex commented Jun 28, 2026

Copy link
Copy Markdown
Member

is this a situation where utf16 is getting through on Windows? should be fixing root of issue & ensuring encodings are set to utf8

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.

3 participants