title: React Native - Interact with API - Special Characters Causing Issues - What's the best way to do this?
body: <p>I cannot consistently successfully send form variables that may/may not include special characters e.g. <code>? &amp; #</code></p>
  
  <p>Depending on where I try to escape the chars I encounter different errors when reading the data server-side.</p>
  
  <p>I am aware that an update is due for React Native 0.7 to include formdata but wondered if I could safely post objects without needing this.</p>
  
  <p>Someone has already posted a similar issue but no example code was posted to illustrate the <code>POST</code> working:
  <a href="https://stackoverflow.com/questions/30662782/how-to-post-a-form-using-fetch-in-react-native">How to post a form using fetch in react native?</a></p>
  
  <p>I have tried - amongst other things :</p>
  
  <pre><code>fetch(APIURL, {
    method: 'POST',
    body: JSON.stringify({
      object1: {
        param1a: "value 1a",
        param1b: "value 1b - with bad chars &amp; # ?",
      },
      object2:
      {
        param2a: "value 2a",
        param2b: 0,
      }
    })
  })
  </code></pre>
  
  <p>but it groups the data into a single unnamed parameter (changing the API to accept this is not an option).</p>
  
  <p>also this:</p>
  
  <pre><code>fetch(APIURL, {
    method: 'GET',
    accessPackage: JSON.stringify({
        accessToken: "abc123",
        tokenType: 2,
    }),
    taggData: JSON.stringify({
      title: "test",
      wishlistID: 0,
      anotherVar: "anotherVal"
    })
  })
  </code></pre>
  
  <p>I wish to receive the data as two strings that can be parsed as json objects at the other end.</p>
  
  <p>Looking at the the fetch repo <a href="https://github.com/github/fetch" rel="nofollow noreferrer">https://github.com/github/fetch</a> hasn't helped as this assumes the post with be a full JSON post (which it isn't) or uses FormData which isn't available to React Native yet.</p>
  
  <p>Another solution may be to safely encode/serialise all of the data to URL parameters but this has also proven inconsistent so far especially with the <code>#</code> char.</p>
  
  <p>What's the best way to do this?</p>