Issue: You open file PHP code (UTF-8 encoding), Netbeans shows warning: "... can not be safely opened with encoding windows-1252. Do you want to continue opening it?"
Solution: Change default file encoding for Netbeans when it starts
Details:
1. Open file "C:\Program Files\NetBeans 7.3\etc\netbeans.conf" to edit
2. Add the option "-J-Dfile.encoding=UTF-8" to "netbeans_default_options"
3. Restart Netbeans IDE, open your file again and enjoy!