Not a bug Escaping unicode in addon.json when bumping version

NikitOS

Well-known member
Affected version
2.2.11
The xf-addon:bump-version command overwrites the addon.json file with the new version, but the json_encode function escapes Unicode, so values with Unicode characters become unreadable.

Before:
JSON:
    "extra_urls": {
        "Тест": "https://example.com/"
    }
After:
JSON:
    "extra_urls": {
        "\u0422\u0435\u0441\u0442": "https://example.com/"
    }

I think it makes sense to disable Unicode escaping when writing the addon.json file to preserve readability.
 
The addon.json file is not designed to be human readable and some amount of escaping may be required for PHP to be able to read and process the addon.json file correctly.

We're not planning any changes to how this is escaped.
 
Top Bottom