1.在JSP文件中加上:
<%@ page contentType="text/html; charset=utf-8" %>
<html:html lang="true"></html:html>
2.使用以下形式輸出字符:
<bean:message bundle="index" key="Anonymous"/>
3.建立類似以下形式的文件(放在classses目錄下):
application_en_US.properties
application_zh_TW.properties
application_zh_CN.properties
其中可能用到這樣的命令:
native2ascii application_cn.properties application_zh_CN.properties
posted on 2006-06-07 14:44
崛起的程序員 閱讀(247)
評論(0) 編輯 收藏