使用XSL显示'£'和'€'符号

aka*_*hic 1 xslt

我正在读取数据源,然后对出来的文本应用xsl变换,并且所有的£和€符号都被剥离.

我错过了一些明显的东西吗 我已经尝试将编码更改为iso-8859-1无济于事.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:output encoding="utf-8"/>
    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:param name="Subject"/>
    <xsl:param name="DateString"/>
    <xsl:param name="CurrentSiteUrl"/>

    <xsl:template match="/">
        <html>
            <xsl:apply-templates/>
    </html>
    </xsl:template>
    <xsl:template match="posts>
        <xsl:variable name="postcount" select="count(content)"/>
        <html>
            <head>
            <meta http-equiv="Content-Type" content="text/html;utf-8" />
            </head>
Run Code Online (Sandbox Code Playgroud)

Ric*_*ard 6

最简单的方法是使用数字字符引用.

&#163;对于£ &#8364;用于