问题
I have set my project properties to UTF-8
encoding and installed all my native language (Tamil) fonts. I have tried to use Tamil
words but it displays only as boxes.
How do I resolve this?
回答1:
NetBeans uses Monospace font as its default font and this font may not have all the unicode characters you need. The solution is to change the default font of NetBeans editor windows and also to change the font of NetBeans output window which needs to be done from different places.
Changing Default Font of NetBeans
- Invoke menu Tools > Options
- In the tab Fonts and Colors change the default font to some other font
Changing Font for Output Window
- Right click on the Output window and choose "Settings.." option
- Change the Font from the font box
When I tried changing the font to Arial Unicode and type unicode tamil characters this was what I could get...
回答2:
Using Tamil font in Netbeans 8.2
- Go to tools
- Select option
- Select Fonts & Colors
- Change font to Nirmala UI
- Click apply and then Ok
Same thing applies for output
- go to Miscellaneous
- Click on Output
- First option change font to Nirmala UI
- Click on Apply and then Ok
Input font change
Output font change
来源:https://stackoverflow.com/questions/34750841/how-to-use-tamil-in-netbeans-8-0-2