Unify URI encoding/decoding and add to C#

http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
This commit is contained in:
Aaron Franke 2020-11-29 22:43:38 -05:00
parent a3e3bf8227
commit e829b7aee4
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
15 changed files with 81 additions and 142 deletions

View file

@ -350,7 +350,7 @@ Error GDScriptWorkspace::parse_local_script(const String &p_path) {
String GDScriptWorkspace::get_file_path(const String &p_uri) const {
String path = p_uri;
path = path.replace(root_uri + "/", "res://");
path = path.http_unescape();
path = path.uri_decode();
return path;
}