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 68179 - [50cat] java editor can not open utf-8 encoded java files
Summary: [50cat] java editor can not open utf-8 encoded java files
Status: VERIFIED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-06 12:46 UTC by kalali
Modified: 2007-11-05 13:44 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 kalali 2005-11-06 12:46:50 UTC
[ BUILD # : 051102 ]
[ JDK VERSION : 1.5.0_03 ]

i filed another issue againts java editor about it does not save java files in utf-8 or other unicode transforation nor it provide an option to determine the source files encoding which i think is a very needed option.
http://www.netbeans.org/issues/show_bug.cgi?id=68178

now i convert my file to utf-8 in eclipse ide (my default encoding is utf-8 there)
and reopen it in netbeans ide , it add some unknown character to the beginning og the file.
so the file can not be compiled .....


as i thought that it could be Eclipse problem , i reopen the file in Jdev and Jdev show the file correctly.
also it can be compiled with JAVAC outside of the IDE > it is IDE editor bug.

here is what netbeans editor add to file header

thank you
Comment 1 kalali 2005-11-06 12:49:02 UTC


/*
 * Main.java
 *
 * Created on August 28, 2005, 12:56 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */


    <--- it is what netbeans add to the begining of the file when it shows
the file.

i even test a file without java doc and i get the same problem.

thank you.
Comment 2 Jan Becicka 2005-11-07 08:31:08 UTC
You must set default encoding to UTF-8:
It is still there: Tools | Options -> Advanced Options -> Editing | Java Sources
-> Default Encoding.
Comment 3 kalali 2005-11-07 09:37:23 UTC
i was blind or maybe the time was too Odd 
sorry if it brings burden to you