Skip to content

Preserve Unicode characters in results exports - #1424

Open
kabookhypnosis wants to merge 2 commits into
WordPress:trunkfrom
kabookhypnosis:patch-1
Open

Preserve Unicode characters in results exports#1424
kabookhypnosis wants to merge 2 commits into
WordPress:trunkfrom
kabookhypnosis:patch-1

Conversation

@kabookhypnosis

@kabookhypnosis kabookhypnosis commented Jul 28, 2026

Copy link
Copy Markdown

Preserve Unicode characters in results exports

This change updates Results_Exporter.php to preserve readable UTF-8 text in exported JSON reports.

Previously, localized messages could be escaped as Unicode sequences such as \u067e..., which made Persian and other non-Latin text harder to read in exported output.

By adding JSON_UNESCAPED_UNICODE to the JSON encoding flags, human-readable localized messages are kept intact while the report remains valid JSON.

Open WordPress Playground Preview

This change updates Results_Exporter.php to preserve readable UTF-8 text in exported JSON reports.

Previously, localized messages could be escaped as Unicode sequences such as \u067e..., which made Persian and other non-Latin text harder to read in exported output.

By adding JSON_UNESCAPED_UNICODE to the JSON encoding flags, human-readable localized messages are kept intact while the report remains valid JSON.
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: kabookhypnosis <saeidafshari@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Fix PHPCS spacing in Results_Exporter
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.

1 participant