Browse Source

Merge pull request #104403 from bruvzg/uid_pm_fix

Fix icons with non-ASCII file names in project manager.
Rémi Verschelde 5 months ago
parent
commit
12384d93db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/io/resource_uid.cpp

+ 1 - 1
core/io/resource_uid.cpp

@@ -311,7 +311,7 @@ String ResourceUID::get_path_from_cache(Ref<FileAccess> &p_cache_file, const Str
 		ERR_FAIL_COND_V(rl != len, String());
 		ERR_FAIL_COND_V(rl != len, String());
 
 
 		if (singleton->id_to_text(id) == p_uid_string) {
 		if (singleton->id_to_text(id) == p_uid_string) {
-			return String(cs.get_data());
+			return String::utf8(cs.get_data());
 		}
 		}
 	}
 	}
 	return String();
 	return String();