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?
Latest posts by Mark Stephens (see all)
- Interesting PDF bugs – How wrong can the references be? - June 19, 2013
- XFA updates - June 14, 2013
- June edition of Entrepreneur country now available online as HTML5 magazine - June 13, 2013
- Customising your keyboard shortcuts in NetBeans IDE - June 11, 2013
- PDF puzzlers – when is a return character significant in a stream? - May 28, 2013