title: Add backslash to String in Objective-c
body: <p>I have a problem identical to this problem <a href="https://stackoverflow.com/questions/1281141/nsstring-adding-backslash-character-objective-c">here</a>.</p>
  
  <p>I even want to encode the same infromation as him (it's a date/time for asp.net)...</p>
  
  <p>When ever I try to add a backslash i get two backslashes since I used \.</p>
  
  <p>Everyone in the thread above has claimed that this is a problem with NSLog and that NSString does treat <code>\\</code> as a <code>\</code>. I have checked this further by using a packet sniffer to examine the packets I'm sending to the webserver and I can confirm that it is transmitting a double backslash instead of a single backslash.</p>
  
  <p>Does anyone know how to add a backslash to a NSString?</p>