I don`t understand as I can use this encoding?
I have the site with specsymbols into different places.
Source code (doesn't work)
function site_upload($url_path)
{
$post_data = array();
$post_data['var1'] = "•";
$o = "";
foreach($post_data as $k => $v)
{
$o .= "$k=".utf8_encode($v)."&";
}
$post_data=substr($o,0,-1);
$ch = curl_init();
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_TRANSFERTEXT, false);
curl_setopt($ch, CURLOPT_URL, $url_path);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Connection: Keep-Alive"));
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile");
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile");
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$data = curl_exec($ch) or die(curl_error($ch));
// Close cURL handle ($ch)
curl_close($ch);
return iconv("KOI8-R","CP1251",$data);
}