I spend a lot of time using IDEA 11.1 or NetBeans 7.3 and switching between. So I like to be sure that they work in the way I expect and also give consistent results. I was intrigued to find that on my Mac, some tests gave slightly different output or each IDE….
Both of them are running the same JDK (1.7_07) with the same heap size. But my results were different. So I examined the changes and they were some altered text characters. The issue was that IDEA and NetBeans have been set to use different encodings for text characters on the Mac – NetBeans is on UTF8 while IDEA uses MacRoman encoding. Aligning them and bingo – I get identical results!
So it was a good reminder that there are other factors that can effect how your Java code works. Here are the 2 properties locations so you can align your values.
Do you have any tips for working with NetBeans and IDEA?
This post is part of our “NetBeans article Index” series. In these articles, we aim to explore NetBeans in different ways, from useful hint and tips, to our how-to’s, experiences and usage of the NetBeans IDE.
Latest posts by Mark Stephens (see all)
- 3 Reasons to attend NetBeans Day in Athens (17-18 April 2015) - March 24, 2015
- NetBeans Day UK – Friday 29th May 2015 - March 23, 2015
- Why we are abandoning ImageIO and JAI for Image support in our commercial Java code - March 19, 2015
- First impressions of the new RaspberryPi for Raspbian, Riscos, Java and NetBeans - March 3, 2015
- Converting a Swing application into JavaFX – Listeners and fast scrolling - February 3, 2015