Click here to Skip to main content
15,885,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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[^]
Posted
Comments
AlphaDeltaTheta 11-Jul-13 1:23am    
Try setting a singhalese font
stark9000 11-Jul-13 1:59am    
didn't work :(


1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900