So, I tried making a WWW call to download some media on my web server.
It works fine for most of the files except when the url has a blank symbol e.g. the texture file name “hello world.png”
it will return “Bad URL” error message and not download anything. This only happens on iOS.
I also tried convert the url string using System.Uri.EscapeUriString() so the file name becomes “hello%20world.png”
but still no luck. ![]()
Again, I have no problem on Android or Standalone.
Have anyone experienced the same problem before?
Have you tried Unity's EscapeUri procedure? http://unity3d.com/support/documentation/ScriptReference/WWW.EscapeURL.html
– GuyTidharAlso if you have a concrete problem, post the exact code you're using. If the system reports a bad URL you have for sure a bad URL. Have you printed your URL and checked how it looks like?
– Bunny83@Bunny83 : Got it working now, thanks for pointing that out, my bad. @guyt : I had to use System.Uri.EscapeUriString() in order to get the right friendly url, WWW.EscapeURL() somehow didn't do the job, maybe I wasn't using the right encoding?
– thitipongk