Skip to content

UTF-8 not preserved in some API calls on Linux and Windows #336

@limbonaut

Description

@limbonaut

In some places such as set_tag() and get_tag(), get_tag() would not preserve UTF-8 encoding, returning a different string. This does affect mostly getters, not setters.

When we take C strings from native SDK and convert to Godot strings, we need to use String::utf8 where those C strings realistically can contain UTF-8 encoded data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingGodot

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions