[RSS Feed/News] Escaping unicode in addon.json when bumping version

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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:

Code:
    "extra_urls": {
        "Тест": "https://example.com/"
    }
After:
JSON:

Code:
    "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.

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom