[ http://issues.apache.org/jira/browse/XALANJ-1881?page=all ]
     
Brian Minchau closed XALANJ-1881:
---------------------------------


Closing this issue down. The field that was not initialized no longer exists 
due to code changes
introduced in XALANJ-2087 which more accurately figures out if a character is 
in an encoding
which is much better than the old max character field ever was.



> 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: 2.6
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>     Priority: Blocker
>      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]

Reply via email to