How can I display Extended ASCII Codes characters in Perl?

Tree picture Tree · Sep 20, 2010 · Viewed 18.5k times · Source

alt text

How to display 192 character symbol ( └ ) in perl ?

Answer

Daenyth picture Daenyth · Sep 20, 2010

What you want is to be able to print unicode, and the answer is in perldoc perluniintro.

You can use \x{nnnn} where n is the hex identifier, or you can do \N{...} with the name:

perl -E 'say "\x{2514}"; use charnames; say "\N{BOX DRAWINGS LIGHT UP AND RIGHT}"'