zhuo   
#NetBeans#     

之前遇到个问题,用netbeans打开之前写的php文件,中文乱码。今儿找到了解决办法:
1、打开其配置文件 netbeans.conf,路径例如:\Program Files\NetBeans 7.2.1\etc
2、找到项:netbeans_default_options
3、在这项中添加 -J-Dfile.encoding=UTF-8,用空格和其他值间隔

原文:
For those who need to use international and multibyte characters, NetBeans can support UTF-8 editing. To enable it, go to your NetBeans installation directory and find the etc folder. There will be a file there called netbeans.conf.
This file keeps some configuration for NetBeans, including the default command line arguments. These are parameters that will be sent to a new starting Netbeans IDE.
Every argument lives inside a double-quoted variable called netbeans_default_options, and each one is separated from another by a space.
To enable UTF-8 in NetBeans, just place this parameter anywhere on the list of netbeans_default_options:-J-Dfile.encoding=UTF-8