[英]is there a way to print Characters from different languages on java?
I've been working on an assignment in java but when i try to write any Amharic characters they turn into boxes我一直在做 java 的作业,但是当我尝试写任何阿姆哈拉语字符时,它们会变成盒子
for example, when I try to print this Amharic character (አማርኛ) on IntelliJ or net beans it shows it as little boxes例如,当我尝试在 IntelliJ 或 net beans 上打印这个阿姆哈拉语字符 (አማርኛ) 时,它会将其显示为小框
if anyone is familiar with this please take a look, thanks in advance.如果有人熟悉这个,请看一下,提前谢谢。
I'm assuming you are referring to the output console in IntelliJ.我假设您指的是 IntelliJ 中的 output 控制台。 Default the console encoding is UTF-8.
默认控制台编码为 UTF-8。 You can edit this setting.
您可以编辑此设置。
Go to help >> edit custom vm options and add (first click "create" if it's your first time there): "-Dconsole.encoding=UTF-8" (but replace UTF-8 with the one you need) Go 帮助 >> 编辑自定义 vm 选项并添加(如果您是第一次,请先单击“创建”):“-Dconsole.encoding=UTF-8”(但将 UTF-8 替换为您需要的)
Google for "console encoding" + name of your editor if you want more information.如果您想了解更多信息,请搜索“控制台编码”+ 编辑器名称。 Good luck: :)
祝你好运: :)
You a need a font that supoorts Amharic.你需要一种支持阿姆哈拉语的字体。
I am using Abyssinica SIL as an example below and NetBeans IDE我使用阿比西尼卡 SIL 作为下面的示例和 NetBeans IDE
Editor编辑
(...)
on the right of the Font field and choose the Abyssinica SIL font you just installed, and click OK.(...)
并选择您刚刚安装的 Abyssinica SIL 字体,然后单击确定。Output Output
(...)
button to the right of the Font field and choose the Abyssinica SIL font and click OK .(...)
按钮并点击Abyssinica SIL字体。 Amharic text will now render correctly in the Output window. ይህ መልስ ጠቃሚ ነበር ብዬ ተስፋ አደርጋለሁ ፡፡ ይህ መልስ ጠቃሚ ነበር ብዬ ተስፋ አደርጋለሁ ። መልካም ምሽት እመኛለሁ ፡፡
መልካም ምሽት እመኛለሁ ።
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.