- bin2hex: documentation ( source)
- strtoupper: documentation ( source)
- pack: documentation ( source)
- ord: documentation ( source)
<?php
$str = 'å';
echo $bin = pack("C3", ord($str{0}), ord($str{1}), ord($str{2}));//å
$hex = strtoupper(bin2hex($bin));
echo "UTF-8įžį : " . $hex . "\n";