[ 
http://issues.apache.org/jira/browse/XALANJ-2234?page=comments#action_12357974 
] 

Albert Tumanov commented on XALANJ-2234:
----------------------------------------

The example works correctly in Xalan 2.5.1:

java -Xbootclasspath/p:xalan.jar;xml-apis.jar;xercesImpl.jar;serializer.jar 
org.apache.xalan.xslt.Process -V -DIAG -IN test.xml -XSL test.xsl -OUT test.txt
>>>>>>> Xalan Version Xalan Java 2.5.1, <<<<<<<


 --------- Transform of test.xml via test.xsl took 240 ms


But since Xalan 2.5.2 things start getting wrong:

java -Xbootclasspath/p:xalan.jar;xml-apis.jar;xercesImpl.jar;serializer.jar 
org.apache.xalan.xslt.Process -V -DIAG -IN test.xml -XSL test.xsl -OUT test.txt
>>>>>>> Xalan Version Xalan Java 2.5.2, <<<<<<<

(Location of error unknown)XSLT Error (javax.xml.transform.TransformerException)
: org.xml.sax.SAXException: Attempt to output character of integral value 326 th
at is not represented in specified output encoding of Windows-1257.


> Problems with output encoding for text output
> ---------------------------------------------
>
>          Key: XALANJ-2234
>          URL: http://issues.apache.org/jira/browse/XALANJ-2234
>      Project: XalanJ2
>         Type: Bug
>     Versions: 2.5, 2.6, 2.7
>  Environment: Windows XP SP2
>     Reporter: Albert Tumanov
>  Attachments: test.xml, test.xsl
>
> Unable to transform correctly XML file in UTF-8 encoding to text file in 
> Windows-1257 encoding.
> java -Xbootclasspath/p:xalan.jar;xml-apis.jar;xercesImpl.jar;serializer.jar 
> org.apache.xalan.xslt.Process -V -DIAG -IN test.xml -XSL test.xsl -OUT 
> test.txt
> >>>>>>> Xalan Version Xalan Java 2.7.0, <<<<<<<
> Warning:  The encoding 'Windows-1257' is not supported by the Java runtime.
> Attempt to output character of integral value 326 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 353 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 299 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 381 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 353 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 257 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 316 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 299 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 257 that is not represented in 
> spe
> cified output encoding of Windows-1257.
> Attempt to output character of integral value 362 that is not represented in 
> spe
> cified output encoding of Windows-1257.
>  --------- Transform of test.xml via test.xsl took 171 ms

-- 
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