如何在Ubuntu中正确显示字符 [英] How to properly display characters in Ubuntu

查看:223
本文介绍了如何在Ubuntu中正确显示字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开



如何在终端显示图标?

解决方案

在PuTTY的设置对话框中,有两件事要检查:




  • 确保远程字符集 (在 Window / Translation 中) ction)设置为UTF-8
  • 选择具有给定字符的字体(在 Window / Appearance 中)。在快速检查中,默认的 Courier New 并不是 ,而 Lucida Console —部分。


    一旦我做了这些更改,文件就可以正确显示某些特殊字符(CALENDAR和音乐)。其他人没有。他们使用这些代码:U + 25C0,U + 231A和U + 2388如果我使用了 Consolas 字体,则显示一个后向问题标记为这些代码(略有改进)。

    如果您不介意使用比例字体,则Tahoma 具有这些代码中的第一个。 Lucida Sans Unicode 票价不会更好。



    如果您安装了Microsoft Office,它会添加可帮助您的很多字体。我记得它的 Arial 有很好的覆盖率。但是,我在手边的Windows机器上看到的 Arial 的捆绑版本并不是那么好。



    这仍然留下最后两个(CLOCK和CPUIMG)。你可能会找到一个合适的字体,但是不管怎样,只有好的覆盖面花费更多。不是免费的。 (这是一个必然结果,大多数提供的一些费用没有很好的覆盖面)。

    I am connecting to my ubuntu 16.04.2 server virtual machine through Putty.

    When I open the this file in terminal, I get empty rectangles where icons should be.

    Actual icons and as displayed in terminal:

    How do I display the icons in the terminal?

    解决方案

    Using PuTTY, there are two things to check (in PuTTY's settings dialog):

    • ensure that the Remote character set (in the Window/Translation section) is set to UTF-8
    • select a font which has the given characters (in Window/Appearance). In a quick check, the default Courier New does not, while Lucida Console does — partly.

    Once I made those changes, the file displayed properly for some of the special characters (CALENDAR and MUSIC). The others did not. They use these codes: U+25C0, U+231A and U+2388

    If I used the Consolas font, that shows a backward question mark for those codes (a slight improvement).

    If you don't mind using proportional fonts, Tahoma has the first of those codes. Lucida Sans Unicode fares no better.

    If you have Microsoft Office installed, it adds fonts which can help a lot. I recall that its Arial has pretty good coverage. But the bundled version of Arial which I see on the Windows machine at hand is not so good.

    That still leaves the last two (CLOCK and CPUIMG). You might find a suitable font, but offhand, the only ones with good coverage cost a little more. Not free. (A corollary to this is that most of the ones offered for some cost don't have good coverage).

    这篇关于如何在Ubuntu中正确显示字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆