>chcp Active code page: 65001 # My machine use UTF-8 for the console. >perl a.pl δφόΔΦάί >chcp 850 Active code page: 850 # It used to default to this. >perl a.pl δφόΔΦάί >chcp 437 Active code page: 437 # Common in the US. >perl a.pl δφόΔΦάί >perl a.pl >a >perl -Mv5.14 -ne"say sprintf '%vX', $_" a C3.A4.C3.B6.C3.BC.C3.84.C3.96.C3.9C.C3.9F.A # UTF-8 of δφόΔΦάί