Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setting up UTF-8 encoding in output window of netbean6.5

Posted on 2010-11-25
6
Medium Priority
?
1,600 Views
Last Modified: 2013-12-14
Hi,

My application is reading excel file with chinese charatecters.

When I debug my code then all chinese character in output window is displayed as ????

How do we set encoding for output window and what encoding is perferable to display output in chinese as well with english

Please suggest

Many Thanks
0
Comment
Question by:tia_kamakshi
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:Bruce Smith
ID: 34215583
I looked and looked and couldn't find a way to do this. The only solution to show Chinese characters in the output window is to change the font to a pre-installed Chinese font on your system by right-clicking inside the output window. But this of course isn't a solution to 'English and Chinese'.

Cheers
0
 

Author Comment

by:tia_kamakshi
ID: 34217479
Thanks patsmitty for your response.

I have right click on my output window but I cannot see any option to set 'English and Chinese'.

Can you please help what steps I need to follow to achieve this task

Thanks again

0
 
LVL 11

Expert Comment

by:Bruce Smith
ID: 34245870

1. Right-click inside of the Output window


2. Select 'Choose Font...'


1. Find and select the 'Monospaced' font.


This worked for me!

 Chinese and English!
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:tia_kamakshi
ID: 34248785
Hi,

Thanks for your reply.

When there is no output before executing the project. The output window is greyed out and we cannot do right click on it.

When we debug the project and stop in between then we can right click inside the output window, but still I cannot see any choose Font option

Can you please guide me how you have done?

Many Thanks
printscreen.bmp
0
 
LVL 11

Accepted Solution

by:
Bruce Smith earned 2000 total points
ID: 34249516
The reason you are not getting the "Choose Font" option is because you have an older version of NetBeans. I have NetBeans 6.9.1 but you are running NetBeans 6.5. Here is what my output context menu looks like in 6.9.1:

NetBeans 6.9.1
I would advise that you update your NetBeans IDE to the new version and try my solution above as you could see it prints out both the Chinese characters and English characters.

PS. You said: "When there is no output before executing the project. The output window is greyed out and we cannot do right click on it." This is correct, you have to run or debug a project or script before you will be able to choose the font. The font will change immediately when you select it, not at the next run.
0
 

Author Closing Comment

by:tia_kamakshi
ID: 34290288
Many Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question