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.

Bug 174081 - FXD composer changes encoding of saved files
Summary: FXD composer changes encoding of saved files
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-08 14:59 UTC by pbenes
Modified: 2010-08-10 08:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Original file, before opened in FXDComposer (477 bytes, text/plain)
2009-10-08 15:00 UTC, pbenes
Details
Modified file saved after some editation by FXDComposer (477 bytes, text/plain)
2009-10-08 15:00 UTC, pbenes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pbenes 2009-10-08 14:59:39 UTC
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.
Comment 1 pbenes 2009-10-08 15:00:18 UTC
Created attachment 89099 [details]
Original file, before opened in FXDComposer
Comment 2 pbenes 2009-10-08 15:00:46 UTC
Created attachment 89100 [details]
Modified file saved after some editation by FXDComposer
Comment 3 Andrew Korostelev 2009-10-30 18:46:26 UTC
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.
Comment 4 pbenes 2009-11-20 07:05:21 UTC
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.
Comment 5 Andrew Korostelev 2009-12-10 03:05:38 UTC
fixed. fxd/fxz are always processed as UTF-8

http://hg.netbeans.org/javafx/rev/7bbbd6db0710
Comment 6 Alexandr Scherbatiy 2010-08-10 08:53:06 UTC
verified in NetBeans IDE Dev (Build 201008100001)