1. A couple of related threads:
http://forum.java.sun.com/thread.jspa?forumID=17&threadID=534318
<div class="jive-quote">Setting the $LANG environment variable to "... resolves the problem and
compiles my files as of before 1.5.0_02.</div>
http://forum.java.sun.com/thread.jspa?threadID=536562&messageID=2594883
<div class="jive-quote">You can compile your source code if you tell javac the character encoding of the
source files. If you don't, javac assumes the system's default encoding. On Solaris,
without any locale settings, the default encoding is ASCII which doesn't support the
copyright symbol. The encoding can be specified with the "-encoding" switch. </div>
2. From within the ide, the help says encodiing can be specified via options window. But that sets only the encoding for the editor and not for compilation.
3. Based on the above, it looks like one way to solve the problem would be to specify the encoding for javac in the build script. But I am not sure how to perform this override. (I am not sure if you can directly modify build.xml etc because these may get regenerated by the ide...)
Can you try the following:
- The -init-macrodef-javac macro for javac is defined in build-impl.xml (nbproject/build.xml and other files are not visible in the project window. But you should be able to see them if you switch to the Files window of the navigator).
- Copy the macro and paste it in build.xml (this definition should override the one in build-impl.xml).
- Add "<attribute default="UTF-8"" name="encoding"/>
I haven't tried this myself though...
4. http://wiki.netbeans.org/wiki/view/FaqI18nFileEnc