我正在使用 tomcat 7 开发 appfuse 模块化应用程序。但是在添加了我的新语言环境后,-means fa for Persian- Persian character 没有正确显示。
在我的 pom.xml 中:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<id>native2ascii-utf8</id>
<goals>
<goal>native2ascii</goal>
</goals>
<configuration>
<encoding>UTF8</encoding>
<includes>
<include>ApplicationResources_zh*.properties</include>
<include>ApplicationResources_ko*.properties</include>
<include>ApplicationResources_fa*.properties</include>
<include>displaytag_zh*.properties</include>
<include>displaytag_fa*.properties</include>
<include>errors_zh*.properties</include>
<include>errors_ko*.properties</include>
<include>errors_fa*.properties</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
我所有的 jsp 文件中包含的 taglibs.jsp 的第一行:
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
但我的问题在哪里?