Reputation: 13
i am pretty much tried all method to fix this but i didn't succeeded i dont really konw what to do how its look
i tried endcoding to utf-8 and its didnt work and chance the config file and stil didn't work all work fine but when i put any korean char its just showing the square box and not showing the char himself.
Upvotes: 1
Views: 891
Reputation: 17353
3/15/20: Edited to provide instructions on obtaining an appropriate font for Korean characters. 3/16/20: Edited to provide instructions on downloading, installing and using a Korean font collection.
The square boxes are probably being displayed because you are not using a font capable of rendering Korean characters, so just use one that does. One such font which NetBeans provides is Arial Unicode MS so try that:
To set that font for your edit windows containing your source code:
main()
method of some trivial Java application: System.out.println("안녕하세요 세상!");
. If you have set the font to Arial Unicode MS it should be displayed correctly.To also set that font for your Output window, containing the println()
output:
When you run your application you should see the Korean characters correctly rendered in the edit window and the output window:
If this doesn't resolve your issue, please update your question to provide more specific details of your problem, including specifying the font(s) that your are using in the window(s) rendering Korean characters as square boxes.
If Arial Unicode MS is not available, select an alternative available font which is capable of rendering Korean characters. To do this on Windows:
chcp 949
to change the code page to 949.Another alternative approach is:
Here's sample output, with the edit window using the fixed width GungsuhChe font, and the Output window using Batang font:
To use the fonts outside of NetBeans you need to install them on Windows:
You can then access the fonts outside of NetBeans. For example, here is a screen shot showing the Java application being run from the command line, with the font in the Command Prompt window first having been set to BatangChe:
Note from the screen shot that you must first set the code page to 949 (using chcp 949
) before running the application, or the Korean characters will not be rendered correctly.
Upvotes: 1