Why does TC URLencode local file paths?
Posted: 2019-11-05, 00:04 UTC
If I select Share or "Open with" for one or more files and send them to Image Shrink (a batch resizer app), the resulting file names are urlencoded - meaning, every space is replaced by %20, & by %26 and so on.
Example:
Result:
URL encoding/URIencoding is generally done on the webs to deal with "untrusted" links (and mask spaces and special characters).
But why with local files on Android?
Maybe, to protect badly written apps that can't properly deal with extended charsets (Unicode) from crashing (or worse)? -- as some kind of general security measure? After all, TC is running as root (a lot).
Or for the benefit of a plugin? Please explain.
Example:
Code: Select all
AES vs EMR - Active (pressure-sensitive) Display Technologies (2018) - slrloungecom.jpg
Code: Select all
AES%20vs%20EMR%20-%20Active%20(pressure-sensitive)%20Display%20Technologies%20(2018)%20-%20slrloungecom.jpg
But why with local files on Android?

Maybe, to protect badly written apps that can't properly deal with extended charsets (Unicode) from crashing (or worse)? -- as some kind of general security measure? After all, TC is running as root (a lot).
Or for the benefit of a plugin? Please explain.