Page 1 of 1

url scheme doesn't work with percent-encoded white space url

Posted: 24 Dec 2013 08:29
by pakker

Code: Select all

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://mywebsite.com/abc%20def.avi"]];
looks like the url parser in VLC has bug there...

Re: url scheme doesn't work with percent-encoded white space url

Posted: 01 May 2016 15:51
by shaybc
did any one ever fixed this issue? i am still suffering from it, and escaping the URL did not work.
if the URL has special characters (other then spaces) - it still behaves badly.

i am using TVVLCKit from swift in the following manner:

Code: Select all

let currentURL: NSURL = NSURL(string: "\(currentPath.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLQueryAllowedCharacterSet())!)")! self.currentMedia = VLCMedia(URL: currentURL)
if the URL is:
smb://PC1/Shay's Folder
or:
smb://PC1/Shay'sFolder

it will cause it to crash,

but if the URL is simple like this:
smb://PC1/ShaysFolder

it will work!

Shay.BC.