Objects 〹
are called HTML entities. PHP has a function that can create them: mb_encode_numericentity
Docs , this is part of the Multibyte String Extension ( Demo ):
$cyrillic = ''; $encoding = 'UTF-8'; $convmap = array(0, 0xffff, 0, 0xffff); $encoded = mb_encode_numericentity($cyrillic, $convmap, $encoding); echo $encoded;
However: you need to know the encoding of your cyrillic string. In this case, I chose UTF-8
, depending on this you need to change the $encoding
parameter of the function and the $convmap
.
hakre source share