在红帽服务器上显示 unicode 字符

发布于 2024-10-02 00:03:34 字数 191 浏览 2 评论 0原文

当我从 Windows 7 计算机连接到服务器时,我在屏幕上看到的是垃圾字符,而不是 UTF-8 编码的 Unicode 字符。我使用 Secure CRT 和 Putty。英文文本没有问题。

我想知道是否可以显示和排序这些单词(印度语言) 我的服务器是 Red Hat Enterprise Linux Server 版本 5.4 (Tikanga)

I get junk characters instead of UTF‐8–encoded Unicode characters on the screen when I connect to my server from Windows 7 machine. I use Secure CRT and Putty. English text has no issues.

I will like to know if it is possible to display and sort those words (Indian Language) My Server is Red Hat Enterprise Linux Server release 5.4 (Tikanga)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青芜 2024-10-09 00:03:34

告诉您的客户使用 UTF-8

Tell your client to use UTF-8.

淡淡の花香 2024-10-09 00:03:34

要在 Putty 中查看 unicode 字符,请进入:

Change settings -> Window -> Translation -> choose UTF8 as Remote character set.

然后您应该能够看到中文表意文字、世界语超级符号、印地语、阿拉伯语、希伯来语、朝鲜语、希腊语... :)

如果看不到,问题可能出在您的服务器上。

您可以通过存储库中的命令行安装缺少的字体。 RedHat 中的日语示例(对于其他发行版,应该有类似的方式):

yum groupinstall Japanese Support

或者通过 GUI,如果您有权访问它。

如果您无法访问任何存储库或安装磁盘,可以在此处进行手动安装:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/International_Language_Support_Guide/add_fonts_all_users.html

或者为您的 Linux 发行版使用类似的指南。

例如,如果您有 rpm 文件(注意:名称的最后一部分是版本,它可以更改,但这并不重要):

# general for Unicode:
rpm -Uvh libXext-1.3.3-3.el7.x86_64.rpm
rpm -Uvh xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm
rpm -Uvh libXrender-0.9.8-2.1.el7.x86_64.rpm
rpm -Uvh xorg-x11-fonts-75dpi-7.5-9.el7.noarch.rpm

#Most of "small" alphabets (cirillic, greek, latin, hebrew...) are in dejavu
rpm -Uvh dejavu-fonts-common-2.33-6.el7.noarch.rpm
rpm -Uvh dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm
rpm -Uvh dejavu-sans-fonts-2.30-2.el6.noarch.rpm
rpm -Uvh dejavu-sans-mono-fonts-2.30-2.el6.noarch.rpm
rpm -Uvh dejavu-serif-fonts-2.30-2.el6.noarch.rpm

#chinese, japanese, (also korean, but this one won't work, see following)
rpm -Uvh cjkuni-uming-fonts-0.2.20080216.1-53.el7.noarch.rpm
rpm -Uvh cjkuni-ukai-fonts-0.2.20080216.1-51.el7.noarch.rpm

#To work, korean needs the followings:
rpm -Uvh libFS-1.0.0-3.1.x86_64.rpm
rpm -Uvh chkfontpath-1.10.1-1.1.x86_64.rpm
rpm -Uvh xorg-x11-xfs-1.0.2-5.el5_6.1.x86_64.rpm
rpm -Uvh fonts-korean-1.0.11-10.el5.noarch.rpm

#Hindi needs the following...
rpm -Uvh fonts-hindi-2.3.1.1-2.el5.noarch.rpm

#when you installed new font packages you MUST run (else they won't work unytill computer restart):
sudo fc-cache -f -v

请记住,当您安装任何系统时,安装尽可能多的语言:它只花费一些空间和它可以避免很多问题。我们生活在一个基本的拉丁字母是不够的世界。

To see unicode characters in Putty, please go in:

Change settings -> Window -> Translation -> choose UTF8 as Remote character set.

Then you should be able to see Chinese ideograms, Esperanto supersigns, Hindi, Arabian, Hebrew, Corean, Greek... :)

If you cannot, probably the problem is in your server.

You can install the missing fonts by command line from repositorium. Example for Japanese in RedHat (for other distributions, there should be a similar way):

yum groupinstall Japanese Support

Or by GUI, if you have access to it.

If you don't have access to any repositorium or installation disk, you can follow manual installation here:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/International_Language_Support_Guide/add_fonts_all_users.html

Or use a similar guide for your Linux distribution.

Example if you have the rpm files (NOTE: the last part of the name is the version, it can change that is not important):

# general for Unicode:
rpm -Uvh libXext-1.3.3-3.el7.x86_64.rpm
rpm -Uvh xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm
rpm -Uvh libXrender-0.9.8-2.1.el7.x86_64.rpm
rpm -Uvh xorg-x11-fonts-75dpi-7.5-9.el7.noarch.rpm

#Most of "small" alphabets (cirillic, greek, latin, hebrew...) are in dejavu
rpm -Uvh dejavu-fonts-common-2.33-6.el7.noarch.rpm
rpm -Uvh dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm
rpm -Uvh dejavu-sans-fonts-2.30-2.el6.noarch.rpm
rpm -Uvh dejavu-sans-mono-fonts-2.30-2.el6.noarch.rpm
rpm -Uvh dejavu-serif-fonts-2.30-2.el6.noarch.rpm

#chinese, japanese, (also korean, but this one won't work, see following)
rpm -Uvh cjkuni-uming-fonts-0.2.20080216.1-53.el7.noarch.rpm
rpm -Uvh cjkuni-ukai-fonts-0.2.20080216.1-51.el7.noarch.rpm

#To work, korean needs the followings:
rpm -Uvh libFS-1.0.0-3.1.x86_64.rpm
rpm -Uvh chkfontpath-1.10.1-1.1.x86_64.rpm
rpm -Uvh xorg-x11-xfs-1.0.2-5.el5_6.1.x86_64.rpm
rpm -Uvh fonts-korean-1.0.11-10.el5.noarch.rpm

#Hindi needs the following...
rpm -Uvh fonts-hindi-2.3.1.1-2.el5.noarch.rpm

#when you installed new font packages you MUST run (else they won't work unytill computer restart):
sudo fc-cache -f -v

Remember when you install any system, to install as many languages as possible: it costs only some space and it can avoid many problems. We live in a world where basic Latin alfabet is not enough.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文