Java控制台中的多字节字符显示 [英] Multibyte character display in Java console
本文介绍了Java控制台中的多字节字符显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要在泰米尔语中印一些文字.如何在Java控制台上的泰米尔语中将其打印出来.我正在测试一段代码,并且为了调试,我需要查看正在打印的文本.
I have some text to be printed in Tamil. How can I get it printed in Tamil on Java console. I'm testing a piece of code and for debugging I require to see the text being printed.
public static void main(String[] args) {
String str = "வீடிவீடிவீடிவீடிவீடி";
System.out.println("String is : "+str);
}
在Java控制台中将输出显示为
Shows output in java console as
String is : ?????????????
推荐答案
- 第一个解决方案
- First Solution
- 第二个解决方案
我不确定,但是您可以使用打开的泰米尔瓶.
I'm not sure but you can use open tamil jar for it.
参见可能会对您有所帮助.
see this might help you.
获得项目属性->资源->将单选按钮更改为其他"->,然后从下拉列表中选择"UTF-8".
Got to project Properties-> Resource->change the Radio button to "Other"-> and select "UTF-8" from drop down.
在日食中它起作用.
In my eclipse its working.
这篇关于Java控制台中的多字节字符显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文