首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Appfuse无法正确显示unicode字符

Appfuse无法正确显示unicode字符
EN

Stack Overflow用户
提问于 2013-06-10 16:58:18
回答 1查看 217关注 0票数 1

我正在用Tomcat7在idea中开发appfuse模块化应用程序。但是在添加我的新区域设置后,用于波斯-波斯字符的-means fa无法正确显示。

在我的pom.xml中:

代码语言:javascript
复制
<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的第一行:

代码语言:javascript
复制
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>

但是我的问题在哪里呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-06-12 15:07:51

我的问题解决了!

代码语言:javascript
复制
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>

我在我的common/taglibs.jsp文件中添加了上面的标记,并使用以下命令将其包含在我的jsp文件中:

代码语言:javascript
复制
<%@ include file="/common/taglibs.jsp" %>

所以这个标签不能导入,应该在每个jsp文件中直接使用!

对不起,我的英语不好。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17020206

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档