netbeans中设置字符集为 UTF8
http://www.1to2.us/N
原来一个再eclipse 下的web项目因为经常出兼容问题 打算转到Netbeans下,项目编码使用utf-8,再网上找了些资料,终于搞定了netbeans的编码设置:
1》打开项目的属性,设置编译参数: -encoding utf-8
Project Properties -> Build -> Compiling Sources -> Additional Compiler Options -> "-encoding utf-8"
2》设置项目源文件的编码是 utf-8
Select files, Window -> Properties -> Text -> Encoding -> "UTF-8".
3》设置 选项--》高级--->java源文件设为utf-8
Tools -> Options -> Options -> Editing -> Java Sources -> Export -> Default Encoding -> UTF-8.
http://www.netbeans.org/products/index_zh_CN.html netbeans 5.5.1 下载处