wordpress - Calling web services method with php , returns unrecognizable characters

I call a web service with php , and display the results into post in wordpress , but response returns with unrecognizable characters.I use XYZ PHP Code plugin for this.
Below the code
//API Url
$url = 'http://myUrl/s1services';
$ch = curl_init($url);
//The JSON data.
$jsonData = array(
'service' => 'login',
'username' => 'username',
'password' => 'password',
'appid' => '256'
);
//Encode the array into JSON.
$jsonData = json_encode($jsonData);
//Tell cURL that we want to send a POST request.
curl_setopt($ch, CURLOPT_POST, 1);
//Attach our encoded JSON string to the POST fields.
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData);
//Set the content type to application/json
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
//Execute the request
$result = curl_exec($ch);
the result below
пїЅMQпїЅNпїЅ@пїЅпїЅЙ¬пїЅtJпїЅЧ®vпїЅпїЅпїЅ>BпїЅпїЅпїЅпїЅпїЅ
xпїЅпїЅпїЅпїЅq,пїЅпїЅCпїЅA$пїЅ
пїЅkoyпїЅпїЅ.О№пїЅпїЅпїЅGпїЅz=пїЅ"пїЅCпїЅp\ \oпїЅпїЅпїЅпїЅ8пїЅпїЅпїЅLпїЅZd|6
wEпїЅпїЅnGPпїЅBЗ¶-ЖњTпїЅ*пїЅпїЅp?2)Й›пїЅпїЅfпїЅпїЅgr1пїЅДѕOyпїЅпїЅ[аІЋ'пїЅ87pkпїЅпїЅпїЅпїЅP В»q9пїЅРЅпїЅ?пїЅ,пїЅcпїЅЩ¦пїЅZUпїЅrIпїЅпїЅЕ‰пїЅTSпїЅУіпїЅbпїЅ}] tzh:пїЅUIпїЅпїЅпїЅПЃ9[пїЅпїЅпїЅDпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅPпїЅ$пїЅпїЅпїЅ~~_пїЅпїЅЯђ(пїЅyпїЅH<пїЅпїЅ>пїЅ?пїЅzпїЅпїЅпїЅlпїЅпїЅпїЅ9RuHпїЅ]пїЅtпїЅпїЅyпїЅRSпїЅCпїЅпїЅnпїЅпїЅWPquпїЅ\2пїЅГЄпїЅzпїЅпїЅпїЅxпїЅWy BxMHRпїЅпїЅRпїЅпїЅпїЅпїЅпїЅпїЅ@KпїЅ$IJпїЅпїЅпїЅ^пїЅпїЅsпїЅZ;пїЅпїЅпїЅoпїЅпїЅjпїЅ~пїЅпїЅпїЅпїЅпїЅпїЅЙ пїЅпїЅ
Where can the error be found?
Thanks for any help
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: illegal string offset
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.