[nodebb-plugin-write-api]How do I POST form data with UTF-8 encoding by using curl?

  • [nodebb-plugin-write-api]
    I would like to POST (send) some form data to a webserver using cURL on a terminal-prompt.

    This is what I got so far:

    curl -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=utf-8" -H "Authorization: Bearer 7ae9463c-146d-440d-b729-890c73bb9d46" --data "title=I Love You" --data "content=我真的不爱你" --data "cid=1" http://localhost:4567/api/v2/topics

    The problem is that the chinese word ("我真的不爱你") are replaced by "����IJ�����" when I browse the website page.



Looks like your connection to NodeBB was lost, please wait while we try to reconnect.