$ perl -d -e'binmode DB::OUT,":utf8"' Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): binmode DB::OUT,":utf8" DB<1> DB<1> s Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1> p "\x{224}"