[ 
https://issues.apache.org/jira/browse/XALANC-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487546#comment-13487546
 ] 

Steven J. Hathaway commented on XALANC-481:
-------------------------------------------

Previous comment should be UTF16 not UTF8
                
> XalanC doesn't handle correctly the Unicode surrogate pairs
> -----------------------------------------------------------
>
>                 Key: XALANC-481
>                 URL: https://issues.apache.org/jira/browse/XALANC-481
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: CurrentCVS
>         Environment: all
>            Reporter: Dmitry Hayes
>            Priority: Minor
>             Fix For: CurrentCVS
>
>
> For the stylesheet :
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> version="1.0">
>   <xsl:variable name="single_surrogate_pair">&#x10001;</xsl:variable>         
>     
>   <xsl:template match="/">
>       <out lenght="{string-length($single_surrogate_pair)}"></out>
>   </xsl:template>
>   
> </xsl:stylesheet>
> we have an output:
> <?xml version="1.0" encoding="UTF-8"?><out lenght="2"/> 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
For additional commands, e-mail: dev-h...@xalan.apache.org

Reply via email to