Application.OpenURL open local file with special characters on android
On android i just want to open a video. Application.OpenURL works perfectly, until the filepath have special characters in it. All this also work fine on windows, doesnt matter which filepath's i have. I talk here only about android.
/mnt/xxx/2014/project.mp4 # works perfectly fine, opens the video in the native player
/mnt/xxx/2014/project cool.mp4 # doesnt work at all
So i have tried many things like (i write fixed path's here because i want exclude the way to convert filenames, that's the easy part)
/mnt/xxx/2014/project cool.mp4 # doesn't launch anything at all, logcat show only one "start u0" command, nothing more
/mnt/xxx/2014/project+cool.mp4 # doesn't launch anything at all, logcat show only one "start u0" command, nothing more
/mnt/xxx/2014/project\ cool.mp4 # doesn't launch anything at all, logcat show only one "start u0" command, nothing more
/mnt/xxx/2014/project%20cool.mp4 # launch video player, but video player cannot find the file, logcat shows that the file later get converted to /mnt/xxx/2014/project%2520cool.mp4 in some java routine from android
So, i have absolutely no idea how to use this correctly. I guess the %20 version is fine but this seems to not work later in android.
I've inspected the gallery app of android, how they do it. Well, the have "proxy" urls like "content://media/external/video/382". Is there any possibilty in unity for such file proxy?
Your answer
![](https://koobas.hobune.stream/wayback/20220612093634im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Application.OpenURL not working in Android 6 & 7 0 Answers
How do I open developers account on iOS and Android? 0 Answers
Is there a way to stop collecting device IDs in Android builds? 0 Answers
How to Prevent Dependency Download For Integrators of Unity SDK? 0 Answers
Problem with Google Console,Problem with Play Console 0 Answers