title: How to decrypt Unicode Hex Charater "&#xa0;"
body: <p>Below is my code for Decryption :</p>
  <pre><code>    NSData *decodedData = [[NSData alloc] initWithBase64EncodedString:@&quot;someEncryptedString&quot; 
      options:0];
      NSData *decryptedData = [self decryptData:decodedData];
      NSString *decryptedstring = [[NSString alloc]initWithData:decryptedData encoding:NSUTF8StringEncoding];
     //the text is base64 encoded one more time for ePub books,so decode it after decryption
     //this is to support HTML5 reader
    
     if (forePub) {
         NSData *doubleDecodedData = [[NSData alloc] initWithBase64EncodedString:decryptedstring 
        options:NSDataBase64DecodingIgnoreUnknownCharacters];
        decryptedstring = [[NSString alloc]initWithData:doubleDecodedData 
        encoding:NSUTF8StringEncoding];
     }
  </code></pre>
  <pre><code>- (NSData *)decryptData:(NSData *)decodedData
  {
  
      NSString *key = @&quot;someKey&quot;;
      NSData *keyData = [key dataUsingEncoding:NSUTF8StringEncoding];
      
      CCCryptorRef cryptor = NULL;
      CCCryptorStatus status = kCCSuccess;
      
      uint8_t iv[kCCBlockSizeBlowfish];
      memset((void *) iv, 0x0, (size_t) sizeof(iv));
      
      
      status = CCCryptorCreate(kCCDecrypt, kCCAlgorithmBlowfish, kCCOptionECBMode, [keyData bytes], kCCKeySizeMinBlowfish, iv, &amp;cryptor);
      
      if (status != kCCSuccess) {
          return nil;
      }
      
      size_t bufsize = CCCryptorGetOutputLength(cryptor, (size_t)[decodedData length],
                                                true);
      
      void * buf = malloc(bufsize * sizeof(uint8_t));
      
      size_t bufused = 0;
      size_t bytesTotal = 0;
      
      status = CCCryptorUpdate(cryptor, [decodedData bytes], (size_t)[decodedData length],
                               buf, bufsize, &amp;bufused);
      
      if (status != kCCSuccess) {
          free(buf);
          CCCryptorRelease(cryptor);
          return nil;
      }
      
      bytesTotal += bufused;
      
      status = CCCryptorFinal(cryptor, buf + bufused, bufsize - bufused, &amp;bufused);
      
      if (status != kCCSuccess) {
          free(buf);
          CCCryptorRelease(cryptor);
          return nil;
      }
      
      bytesTotal += bufused;
      CCCryptorRelease(cryptor);
      NSData *decryptedData = [NSData dataWithBytesNoCopy:buf length:bytesTotal];
      return decryptedData;
  }
  </code></pre>
  <p><strong>O/P</strong> comes something like below:-</p>
  <pre><code>&quot;Conditions 1&amp;#xa0;&quot;
  </code></pre>
  <p>I want these Unicode Hex Character to be converted properly.</p>