java swing jtextfiled unicode sinhala [英] java swing jtextfiled unicode sinhala
本文介绍了java swing jtextfiled unicode sinhala的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在swing textfileds中键入sinhala单词,但它们在java中没有正确显示,记事本中的相同文本显示正确的单词。如何解决这个
记事本图片:
[ ^ ]
的java图片:
http://imageupper.com/i/?A0300010070011I13734604591427932 [ ^ ]
i want to type sinhala words in swing textfileds , but they dont appear correctly in java , same text in notepad shows correct word. how can i fix this ?
notepad picture:
[^]
java picture :
http://imageupper.com/i/?A0300010070011I13734604591427932[^]
推荐答案
使用非ASCII字体可能会非常痛苦。
坚持UTF-8,它会让你更好。 UTF-8是一种用于非ASCII字符的ASCII-konform编码。
你可以使用类字体 [ ^ ]。
请查看一些以下:
- 国际化
- I18n
- 非ASCII编码
问题很常见,而不是新问题。
Working with non-ASCII Fonts can be a real pain.
Stick to UTF-8, that will make it better for you. UTF-8 is kind of a ASCII-konform encoding for non-ASCII characters.
You can use the class Font[^] for that.
Please also check out some of the following:
- internationalization
- I18n
- non-ASCII encoding
The problem is common, not new.
这篇关于java swing jtextfiled unicode sinhala的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文