@@ -40,6 +40,9 @@ |
||
40 | 40 | return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES'); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $data |
|
45 | + */ |
|
43 | 46 | static private function uniChrCode($data) { |
44 | 47 | list(, $ord) = unpack('N', mb_convert_encoding($data, 'UCS-4BE', 'UTF-8')); |
45 | 48 | return $ord; |