Skip to content

Commit f68c9a2

Browse files
author
Meyyappan Velayutham
committed
TASK: Configure header to aid sending UTF-8 messages
1 parent 714c21e commit f68c9a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Adapters/Kap/KapAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ private function buildOptions($devices, $message)
6262
return [
6363
'debug' => false,
6464
'timeout' => 10,
65+
'headers' => [
66+
'Content-Encoding' => 'UTF-8'
67+
],
6568
'json' => [
6669
'authentication' => [
6770
'username' => $this->config['username'],
@@ -71,6 +74,7 @@ private function buildOptions($devices, $message)
7174
[
7275
'sender' => $this->config['sender'],
7376
'text' => $message->getMessage(),
77+
'datacoding' => 8,
7478
'recipients' => $recipients
7579
]
7680
]

0 commit comments

Comments
 (0)