Now NetBeans 6.0 supports UTF-8 as source encoding and it can be
configured on project properties dialog. It should work in most cases.
But there are some exceptions. How about JavaFX and Ruby? These
scripting languages are parsed and executed by external interpreter.
When you use NetBeans, it will be usually invoked from NetBeans.
It means that ruby runtime and javafx runtime will use the locale of NetBeans.
This is one example. On Windows platform, even when you set project
encoding of your JavaFX project to UTF-8, but NetBeans will invoke
javafx interpreter with the same locale of NetBeans. In Japanese
Windows, its encoding for file I/O will be Windows-31J. As the result, Japanese characters are
garbled like above.
In this case, we can change the encoding setting to Windows-31J from
UTF-8.
Another solution would be using UTF-8 encoding in javafx interpreter,
by setting "-Dfile.encoding=UTF-8" in VM options.
Ruby is the same. Ruby interpreter will be also invoked from NetBeans
and it uses platform encoding, Windows-31J encoding in Japanese
Windows. It depends on the locale when you start NetBeans.
So, you need to care the source encoding and interpreter encoding on
NetBeans. I don't think it's a special because we usefully care the encoding
when we use such scripting languages.