title: How to send UTF8 to the WordPress REST-API?
body: <blockquote>
    <p>Malformed UTF-8 characters, possibly incorrectly encoded</p>
  </blockquote>
  
  <p>Disclaimer: Character encodings confuse me a lot.<br>
  I want to create a lot of posts automated via the WordPress REST-API. I can create posts without an issue - unless I got <em>special</em> characters in my content. Emojis for example.</p>
  
  <pre><code>$params = @{
      title = $Title
      content = $Content # "foobar" would work just fine; 
                         # "äöü" will give me an error
  }
  
  Invoke-RestMethod -Uri "https://my.blog.foo/wp-json/v2/posts" `
                    -Method POST `
                    -Headers @{ Authorization = ("Basic {0}" -f $ACCESS_TOKEN) } ` 
                    -ContentType "application/json" `
                    -UseBasicParsing `
                    -Body $($params | ConvertTo-Json) 
  </code></pre>
  
  <p>I assume this actually isn't a WordPress related issue. Anyhow I'm fiddling aroundd for quite a while now and I just can't figure out a way to send my content without malforming ("ö" gets "?") it.</p>