<?php
function my_character2numeric($t)
{
$convmap = array(0x0, 0x2FFFF, 0, 0xFFFF); }
echo my_character2numeric("жопа");
?>
PD9waHAKCgpmdW5jdGlvbiBteV9jaGFyYWN0ZXIybnVtZXJpYygkdCkKewogICAgJGNvbnZtYXAgPSBhcnJheSgweDAsIDB4MkZGRkYsIDAsIDB4RkZGRik7CiAgICByZXR1cm4gc3RyX3JlcGxhY2UoYXJyYXkoIiYjIiwgIjsiKSwgYXJyYXkoIlxcdSIsICIiKSwgbWJfZW5jb2RlX251bWVyaWNlbnRpdHkoJHQsICRjb252bWFwLCAnVVRGLTgnKSk7Cn0KCmVjaG8gbXlfY2hhcmFjdGVyMm51bWVyaWMoItC20L7Qv9CwIik7Cj8+