title: how to retrieve accented characters on express?
body: <p>I have problems with accented characters on my POST request ..
  I tryed with iconv but noways..
  Part of my code: </p>
  
  <p><strong>Edit:</strong>
  ...</p>
  
  <pre><code>    var bodyString = JSON.stringify(req.body);
  
      var options = {
          host: XXXXX,
          port: XXX,
          path: url,
          method: 'POST',
          encoding: null,
          rejectUnauthorized: false,
  
          headers: {
              "OAM_SFID": header.sfid,
              "X-FORWARDED-SERVER": header.server,
              "OAM_TIENE_PERFIL": header.loginType,
              "OAM_REMOTE_USER": header.user,
              "Content-Type": "application/json;charset=UTF-8",
              'Content-Length': bodyString.length,
              "Accept": "application/json"
          }
      };
      var body = '';
      var getReq = https.request(options, function (res) {
          console.log("\nstatus code: ", res.statusCode); // CODE 400! -.-
          var currentHeader = res.headers['content-type']; 
          res.setEncoding('utf8');
          res.on('data', function (data) {//this data has a accented character
            console.log(data);// Expected a ',' or '}' at character 1132
          body += data;
          });
  
          res.on('end', function () {
              var parsed = currentHeader &amp;&amp; currentHeader.indexOf('json') != -1 ? JSON.parse(body) : body;
              response.status(res.statusCode);
              response.send(parsed);
              if(res.statusCode === 200){
               .....
  </code></pre>
  
  <p>I saw this post <a href="https://stackoverflow.com/questions/8332500/module-request-how-to-properly-retrieve-accented-characters">Module request how to properly retrieve accented characters? � � �</a> but doesnt work..</p>
  
  <p>My node version is 9.6.1
  The problem is on the body where there are a word with accent this do an 400 error ,   -> Expected a ',' or '}' at character 1132</p>