diff --git a/lib/php/src/Client.php b/lib/php/src/Client.php index 9938b0167..4c6417db0 100644 --- a/lib/php/src/Client.php +++ b/lib/php/src/Client.php @@ -355,11 +355,16 @@ public function toShortCallback($m) if (!in_array($unicode, $unicode_replace)) { - $unicode = substr($m[1], 0, 4); + $unicode .= "\xEF\xB8\x8F"; if (!in_array($unicode, $unicode_replace)) { - return $m[0]; + $unicode = substr($m[1], 0, 4); + + if (!in_array($unicode, $unicode_replace)) + { + return $m[0]; + } } }