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.
I use UTF-8 encoded Java sources, mostly for the convenience of using mathematical symbols as variable names. However,Jackpot does not seem to like that, and I get a lot of messages that look like: C:\XmlApplicLtd\JoXer\src\JoXer\Presentation\JxColor.java:103: illegal character: \177 α = color.getAlpha(); ^ Where the funny characters should be a Greek alpha symbol. I think Jackpot should obey the default encoding in: Options -> editing -> Java sources -> default encoding
Currently it can't, I think. There is no API for it. Might be possible using reflection, I don't know. Not sure what your options are on Win XP. On Linux you can simply set your locale to UTF-8 and then all text files will be treated as UTF-8-encoded.
If Jackpot cannot access the editor's configuration, than it should include some way to accept parameters, similarly to the way javac can be told to accept a particular encoding. I stronly feel that this should be resolvable within Netbeans, rather than outside it, in the OS. I do not wish to set my XP locale to UTF-8, even if possible, as it would probably kill dozens of non-Java programs very dead. What I need is for Netbeans to consistently apply a particular encoding.
No problem, I'll add support for this option. Jesse, he's only asking that the public org.netbeans.module.java.settings.JavaSettings's defaultEncoding value be used, which the javacore module supports.
Re. JavaSettings - that is what I meant by "no API" and "reflection".
Added support for property, by calling the semi-public API org.netbeans.modules.java.settings.JavaSettings.defaultEncoding(). FYI, we run XP at home with UTF-8 encoding since my children go to a bi-lingual school. To paraphrase a common movie disclaimer, no apps were harmed in the setting of this property. :-) It's actually a very common encoding for any English-speaker who has contact with non-English speakers, such as with other members of the NetBeans community.