fortheusers/hb-appstore

Garbled non-ASCII characters

Closed this issue · 1 comments

Describe the bug
Non-ASCII characters are garbled on the AppDetails screen, but work fine elsewhere

Platform:
Affects all platforms

To Reproduce
Using a custom repo with the following repo.json:

{
    "packages": [
        {
            "name": "test",
            "title": "Testin’",
            "author": "test",
            "version": "1.0.0",
            "details": "Testin’"
        }
    ]
}

And going the app details page, the apostrophe "’" (U+2019) becomes garbled; this also happens to other non-ASCII characters.
2024-01-30_01-56
On other screens and the title at the top of the app details it's fine.
2024-01-30_01-44

Thank you for the report and example repo to reproduce! This appears to be fixed now with the new localization support (which also supports more UTF8 characters) in: b22b249. The very specific change that fixes this page is the use of TTF_RenderUTF8_Blended_Wrapped instead of TTF_RenderText_Blended_Wrapped in Chesto's TextElement.

Image of App Details after those changes:

Screenshot 2024-04-14 at 5 53 37 PM