如何在Perl中显示扩展ASCII码字符? [英] How can I display Extended ASCII Codes characters in Perl?
本文介绍了如何在Perl中显示扩展ASCII码字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在perl中显示192个字符符号 (└) ?
How to display 192 character symbol ( └ ) in perl ?
推荐答案
您想要的是能够打印unicode,而答案是在 perldoc perluniintro
.
What you want is to be able to print unicode, and the answer is in perldoc perluniintro
.
您可以使用\x{nnnn}
(其中n是十六进制标识符),也可以使用名称\N{...}
:
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}"'
这篇关于如何在Perl中显示扩展ASCII码字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文