This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Netbeans rc1 see att
Created attachment 59968 [details] x
Created attachment 59969 [details] xx
The same thing with the license in the IDE. CC-ing Tonda.
Created attachment 59974 [details] NetBeans IDE license window
The issue in NBI is clear for me. We read the license using input stream and convert it to string using the default charset. UTF8 chars (?) in the NetBeans license are not in the default charset but in UTF8 so the bad symbols are shown. The issue (SystemUtils.resolveString("$R{" + licenseResouce + "}")) is going from nbi/engine/src/org/netbeans/installer/wizard/components/panels/LicensesPanel.java nbi/engine/src/org/netbeans/installer/product/components/ProductConfigurationLogic.java Additionally the same technique is been used in the following files and thus can happen installer/components/products/nb-javame/src/org/netbeans/installer/products/nb/javame/ConfigurationLogic.java installer/components/products/nb-portalpack/src/org/netbeans/installer/products/nb/portalpack/ConfigurationLogic.java
The issue with license in the IDE is also obvious: JEditorPane.setPage(url) method is used and when the document at url contains UTF8 chars they are not displayed correctly. Likely JEditorPane.setContentType will do the trick... Also CC-ing Marek - it seems that he mentioned as the author of o.n.upgrader/src/org/netbeans/license/LicensePanel.java
Dmitry, I suggest that we fix this issue in 6.1 without code changes. Simply by changing the content of LICENSE.txt file, removing the UTF8 characters. BTW, the characters are some special double-quotes. We can use the regular double-quotes instead.
Tonda, I am all for that. Should we check with Darin/Legal that change? FYI: diff C:\license.txt C:\decoded.txt 20,21c20,21 < with Classpath Exception ("GPLv2 with Classpath Exception") < or the Common Development and Distribution License ("CDDL"). --- > with Classpath Exception (тАЬGPLv2 with Classpath ExceptionтАЭ) > or the Common Development and Distribution License (тАЬCDDLтАЭ). 766c766 < 48 C.F.R. ¤ 252.227-7014(a)(1)) and "commercial computer --- > 48 C.F.R. ┬д 252.227-7014(a)(1)) and "commercial computer
License text is supposed to be in ASCII (it is english text). If there is real need for special non ASCII characters it must be clearly stated.
> Should we check with Darin/Legal that change? Not needed. Let's integrate it. Can you send me your decoded.txt file?
ide.branding/release/LICENSE.txt in release61 was updated (5ba690696a69).
Done for installer as well: http://hg.netbeans.org/release61/rev/e6be3d52cac8 http://hg.netbeans.org/release61-php/rev/d705d5df08df
*** Issue 132581 has been marked as a duplicate of this issue. ***
Can be marked FIXED I think.