[ http://issues.apache.org/jira/browse/XALANJ-1881?page=all ]
Brian Minchau updated XALANJ-1881:
----------------------------------
Fix Version: 2.7
> xsl:output encoding not always fully initialized when using XSLTC
> -----------------------------------------------------------------
>
> Key: XALANJ-1881
> URL: http://issues.apache.org/jira/browse/XALANJ-1881
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Versions: CurrentCVS
> Environment: Operating System: Other
> Platform: Other
> Reporter: Brian Minchau
> Assignee: Brian Minchau
> Fix For: 2.7
> Attachments: bugzilla.29234.patch.txt
>
> This is a problem for non-ASCII characters.
> When XSLTC creates a serializer (which turns the result-tree into
> characters to be written to a file) the encoding value from the
> xsl:output encoding attribute is not properly set causing some characters to
> be
> written out as character references. For example if the encoding is "UTF-8"
> the
> serilized output might show 啓 rather than the UTF-8 encoded form.
> The fix is for the serializer to properly initialize the encoding.
> Internally XSLTC creates a serializer and calls its
> setEncoding() method. This is not a public API but it is the way XSLTC does
> it.
> This method sets the encoding value in the serializer (m_encoding) but not a
> helper field (ToStream.m_maxCharacter).
> Internally the class ToStream needs to have a setEncoding(String encoding)
> method that makes sure m_maxCharacter is also set.
> - Brian Minchau
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]