How to save filename with space on Iphone
<p>I am trying to save file in document directory using </p>

<pre><code>NSString *documentDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,     NSUserDomainMask, YES) lastObject];
NSString *filename=[NSString stringWithFormat:@"abc 1.pdf",];
NSString *pdfLocation = [documentDirectory stringByAppendingPathComponent:filename];
</code></pre>

<p>I am opening this file using a web view</p>

<pre><code>NSURL *url = [NSURL URLWithString:pdfLocation];
NSURLRequest *urlRequest = [[NSURLRequest alloc] initWithURL:url];
[self.webView loadRequest:urlRequest];
[urlRequest release];
</code></pre>

<p>This fails if the the file name has a space.How should I save file so that space in the filename is maintained.</p>
