Skip to content

Commit 48aafd3

Browse files
authored
Update OneSignalClient.php
add UTF-8 encoding
1 parent 4af5b6d commit 48aafd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OneSignalClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function sendNotificationUsingTags(
141141
$schedule = null
142142
) {
143143
$contents = [
144-
"en" => $message
144+
'en' => mb_convert_encoding($message, 'UTF-8', 'UTF-8')
145145
];
146146

147147
$params = [
@@ -437,4 +437,4 @@ public function put($endPoint)
437437

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

0 commit comments

Comments
 (0)