diff --git a/core/io/resource_uid.cpp b/core/io/resource_uid.cpp index a73adf9d747..20831d8e626 100644 --- a/core/io/resource_uid.cpp +++ b/core/io/resource_uid.cpp @@ -311,7 +311,7 @@ String ResourceUID::get_path_from_cache(Ref &p_cache_file, const Str ERR_FAIL_COND_V(rl != len, String()); if (singleton->id_to_text(id) == p_uid_string) { - return String(cs); + return String::utf8(cs.get_data()); } } return String();