use Encode qw(encode); print encode("UTF-8", chr(0x20B9));