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 42462 - I18N - Define UTF-8 as default encoding for source files
Summary: I18N - Define UTF-8 as default encoding for source files
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2004-04-26 10:56 UTC by brihaye
Modified: 2008-12-22 23:39 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brihaye 2004-04-26 10:56:24 UTC
UTF-8, because it is "universal" should be defined
a the default encoding for the source files.

See http://www.netbeans.org/servlets/ReadMsg?
msgId=738966&listName=nbusers for a more detailed 
rationale.

p.b.
Comment 1 Jesse Glick 2004-05-15 02:56:00 UTC
May be closed as WONTFIX. I don't know if this is the right default.
Would be annoying to people using other apps which aren't set to use
UTF-8 as the default, esp. in Asian locales I think. Needs wider
discussion and planning.
Comment 2 brihaye 2004-05-15 09:35:44 UTC
OK, but see : http://www.netbeans.org/issues/show_bug.cgi?id=42437

As a minimum, it would be nice if the IDE reported that it is working 
with the *default* encoding (i.e. the file.encoding system property 
of the running JVM).

On a related topic, having the opportunity to set these system 
properties in a dedicated options-windows TreeItem would be nice).
Comment 3 Ken Frank 2004-06-08 19:58:48 UTC
would be great if there was some kind of unified approach to
allowing user to set encoding or some defaults for it; know its
hard due to so many file types and also specs rules like for jsp
and xml

ken.frank@sun.com
06/08/2004
Comment 4 Petr Nejedly 2004-06-09 12:10:28 UTC
UTF-8 is bad default. The only correct default encoding is the one
provided by the OS/JVM (file.encoding), as it is the only one
consistent across other applications on the machine.

E.g. if I save my sources using UTF-8 and then running javac from
command line on my cs_CZ Linux, it would garble all the czech texts
in my sources.

Of course I can use cs_CZ.UTF-8 locale on my Linux, and in that case,
NetBeans would correctly use UFT-8 as the file encoding.

Anyway, issue 42437 is valid.