Skip to content

Commit

Permalink
Update OneSignalClient.php
Browse files Browse the repository at this point in the history
add UTF-8 encoding
  • Loading branch information
Hussam3bd authored Jun 23, 2018
1 parent 4af5b6d commit 48aafd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OneSignalClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function sendNotificationUsingTags(
$schedule = null
) {
$contents = [
"en" => $message
'en' => mb_convert_encoding($message, 'UTF-8', 'UTF-8')
];

$params = [
Expand Down Expand Up @@ -437,4 +437,4 @@ public function put($endPoint)

return $this->client->put(self::API_URL . $endPoint, $this->headers);
}
}
}

0 comments on commit 48aafd3

Please sign in to comment.