【发布时间】:2010-06-28 10:33:06
【问题描述】:
我正在使用 XSLT 来显示一些 (空格)和 £ (£) 符号,但它们都显示为问号(无法识别的字符)。
我的编码在 HTML 中设置为 UTF-8,XSLT 标头如下所示
<xsl:stylesheet
version="1.0"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="xhtml xsl">
<xsl:output method="xml" version="1.0" encoding="UTF-8" charset="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" indent="yes" omit-xml-declaration="yes" />
有人知道我哪里出错了吗?
非常感谢。
【问题讨论】:
标签: java encoding utf-8 character