title: error: hex escape sequence out of range
body: <p>Trying to compare to a string:
  <code>BOOL r = [res isEqualToString:[@"\x124Vx\xc3\xaa"]];</code></p>
  
  <p>However I got </p>
  
  <blockquote>
    <p>error: hex escape sequence out of range</p>
  </blockquote>
  
  <p>I tried also something like:</p>
  
  <pre><code>NSString *s = [@"\x12" stringByAppendingString: @"4Vx\xc3\xaa"];
  BOOL r = [res isEqualToString:s];
  </code></pre>
  
  <p>Now it could work and return <code>YES</code></p>
  
  <p>How can I specify such string and avoiding splitting them up first? It's kind of annoying...</p>
  
  <p><em>UPDATE</em>:
  I use @rmaddy's code, and it works now, however, If I put it in array like:</p>
  
  <pre><code>NSArray *answers = @[
                       @"",
                       @"#",
                       @"\x12""4Vx\xc3\xaa",
                       ] 
  </code></pre>
  
  <p>It will generate a warning for the last string literal:</p>
  
  <blockquote>
    <p>Concatenated NSString literal for an NSArray expression - possibly missing a comma
    How to get rid of it?</p>
  </blockquote>
  
  <p>Using</p>
  
  <pre><code>NSString *s = @"\x12""4Vx\xc3\xaa";
  NSArray *arr = @[s];
  </code></pre>
  
  <p>Can work, but I prefer not writing more NSString *s ... to do it.</p>