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 12146 - When saving the Java source, it is not saved properly as UTF8 file.
Summary: When saving the Java source, it is not saved properly as UTF8 file.
Status: CLOSED DUPLICATE of bug 12254
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@java
URL: http://www.realcommerce.co.il
Keywords:
: 12147 (view as bug list)
Depends on: 12254
Blocks:
  Show dependency tree
 
Reported: 2001-05-13 14:28 UTC by Oren Mondshein
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oren Mondshein 2001-05-13 14:28:29 UTC
After changing font.properties.iw to font.properties
( and after backup the original one),

I tried to write some Hebrew literals in the editor.

It worked pretty nice, but after saving the file, all the Hebrew gone.

That's because the source didn't saved as UTF8 properly.

Only the first byte was written for each Hebrew literal to the disk.

In addition the English fonts looked less nice, when I used the
font.properties.iw configuration file.
Comment 1 David Konecny 2001-05-14 09:19:41 UTC
*** Issue 12147 has been marked as a duplicate of this issue. ***
Comment 2 Jan Lahoda 2001-05-25 09:21:54 UTC
I think this is not possible to do it from editor module. I think this should be
done in openide. Re-assign if I am wrong.
Comment 3 Jesse Glick 2001-05-25 11:03:18 UTC
Is your "platform default encoding" according to Java set to UTF-8? If not, I
don't think it will work; the IDE currently has no mechanism for associating
encodings with particular files, it will use your system default in most
situations.
Comment 4 Svata Dedic 2001-05-25 12:18:11 UTC
I'd move the issue into the java module, since loading/saving source is under
its control anyway.
If your environment defaults are not set to UTF-8, then NetBeans 3.2 won't
handle it properly. For more, please refer to / comment issue #12254 
	http://java.netbeans.org/issues/show_bug.cgi?id=12254
Comment 5 Svata Dedic 2001-06-28 09:02:31 UTC
No additional feedback - I'm assuming that this issue is the same as the RFE 
#12254


*** This issue has been marked as a duplicate of 12254 ***
Comment 6 Quality Engineering 2003-07-01 13:12:23 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2003-07-01 13:18:43 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.