You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by ---GS--- <gs...@trash-mail.com> on 2010/06/28 16:21:53 UTC
Problems with Unicode-Signs
Hi,
i have a problem with xalan converting some of my Unicode-Signs.
My imput file contains elements with an attribute like this:
uid="􀀁"
My HTML output file should contain these unicode-ids somewhere within the
text (for example: <body>􀀁</body>), but XALAN replaces it with 2
characters instead (in this example: <body>��</body>)
If I use the Mozilla Firefox to transform my input file this error doesn't
occur.
Is there any way to fix this in XALAN? I hope you can help me.
Here is my test example:
test.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<test uid="􀀁"></test>
test.xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:template match="min">
<html><body><xsl:value-of select="@uid"/></body></html>
</xsl:template>
</xsl:stylesheet>
output.html is:
<html><body>��</body></html>
instead of:
<html><body>􀀁</body></html>
--
View this message in context: http://old.nabble.com/Problems-with-Unicode-Signs-tp29008571p29008571.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.
Re: Problems with Unicode-Signs
Posted by David Bertoni <db...@apache.org>.
On 6/28/2010 7:21 AM, ---GS--- wrote:
>
> Hi,
>
> i have a problem with xalan converting some of my Unicode-Signs.
> My imput file contains elements with an attribute like this:
> uid="􀀁"
> My HTML output file should contain these unicode-ids somewhere within the
> text (for example:<body>􀀁</body>), but XALAN replaces it with 2
> characters instead (in this example:<body>��</body>)
> If I use the Mozilla Firefox to transform my input file this error doesn't
> occur.
>
> Is there any way to fix this in XALAN? I hope you can help me.
>
>
> Here is my test example:
> test.xml:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <test uid="􀀁"></test>
>
> test.xsl:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:strip-space elements="*"/>
> <xsl:template match="min">
> <html><body><xsl:value-of select="@uid"/></body></html>
> </xsl:template>
> </xsl:stylesheet>
>
> output.html is:
> <html><body>��</body></html>
> instead of:
> <html><body>􀀁</body></html>
I'm not seeing this result, although there certainly is a bug in the
current version of the source code. Can you be more specific about the
version and platform you're using?
Can you please create a Jira issue and attach your test files to it? I
have a potential fix, but it will need more testing.
Thanks!
Dave