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.
When an FXD/FXZ files is opened, changed and saved in FXDComposer editor, encoding of the file is changed and some unicode (UTF8?) characters are lost. Steps to reproduce: 1) Open the attached file before.fxd, change something then revert the change and save the file. 2) The file is saved as after.fxd and the unicode characters representing the quotes are somehow changed and loader cannot display them correctly.
Created attachment 89099 [details] Original file, before opened in FXDComposer
Created attachment 89100 [details] Modified file saved after some editation by FXDComposer
I need some clarification. 1. most likely you haven't mentioned, but you have changed encoding property for the whole project. If not, I can't reproduce an issue. 2. What is a correct behavior for this case? I thought that usual netbeans behavior is to use project's encoding property value for opening and saving files. If editor should determine encoding for fxd in some specific way, should the same way be used for fx? Because now FX project uses the same FileEncodingQueryImplementation for fx and fxd files.
Sorry about late comments... ad 1) I do not think I have touched project encoding in any way during the steps that demonstrates the bug. ad 2) The fxd files should be always in UTF-8 encoding, no matter what a project encoding is. ad 3) No, I think that fx source files are a different story.
fixed. fxd/fxz are always processed as UTF-8 http://hg.netbeans.org/javafx/rev/7bbbd6db0710
verified in NetBeans IDE Dev (Build 201008100001)