title: utf-8 encoding of pdf content xcode
body: <p>hello i am using leaves view to display pdf pages.it is working perfectly fine with pdf having english character but when call pdf which is having arabic content my app crashes.i am using the code below</p>
  
  <pre><code>- (id)init 
  {
      if (self = [super init]) 
      {
  
  CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("**paper.pdf**"),NULL, NULL);
  
          pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
          mysearch= [pdfsearch alloc];
          //NSString*s=mysearch.currentData;
          //NSString*val=[mysearch loadparser];
              CFRelease(pdfURL);
      }
      return self;
  }
  </code></pre>
  
  <p>can  any anyone tell me  how to encode its contents before calling its name on  cfbundlecopyresource url.
  thanks</p>