PHP Curl post with non-english characters PHP Curl post with non-english characters curl curl

PHP Curl post with non-english characters


From http://php.net/manual/es/function.curl-setopt.php

Try adding:

curl_setopt($this->curl,CURLOPT_HTTPHEADER,array (    "Content-Type: application/x-www-form-urlencoded; charset=utf-8"));

application/x-www-form-urlencoded suggested by @spencercw


Fixed with

$message = @iconv("UTF-8","Windows-1252//IGNORE",$message);