Skip to content

Commit a854ecd

Browse files
authored
Merge pull request #31 from MuhammadRiyaz/master
Charset Curl - with non-english characters
2 parents 3b309e0 + 839b852 commit a854ecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Silverpop/EngagePod.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,8 @@ private function _httpPost($fields) {
747747
curl_setopt($ch,CURLOPT_POST,count($fields));
748748
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
749749
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
750+
curl_setopt($ch,CURLOPT_HTTPHEADER,array (
751+
"Content-Type: application/x-www-form-urlencoded; charset=utf-8" ));
750752

751753
//execute post
752754
$result = curl_exec($ch);

0 commit comments

Comments
 (0)