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

Posted on 2010-11-25
Last Modified: 2013-12-14

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
Question by:tia_kamakshi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
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'.


Author Comment

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

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!
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.


Author Comment

ID: 34248785

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
LVL 11

Accepted Solution

Bruce Smith earned 500 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.

Author Closing Comment

ID: 34290288
Many Thanks

Featured Post

Independent Software Vendors: 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ā€¦
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

617 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