【发布时间】:2014-01-10 09:51:25
【问题描述】:
我在使用<fmt:formatNumber type="currency"> 为下面的代码显示欧元符号时遇到问题。
<fmt:formatNumber value="$l_thresholdValue}" minFractionDigits="0" type="currency" var="thresholdValue"/>
此代码在其他 jsp 页面中工作正常。我尝试了所有可能的方法,例如将文件保存在 UTF-8 中,并将编码样式 <%@page contentType="text/html;charset=UTF-8"%> 包含在 jsp 文件中。
欧元符号仍显示为“?”
谁能帮帮我
【问题讨论】:
-
您是否也将编码元数据放入您的 html 中?
-
没有使用 html 文件
-
那么输出 mimetype 是什么?
-
使用这一行
-
所以,您正在输出 html。那么我的问题是:您是否还包括相应的元标记