WINDOWS-1250 is treated as equivalent to ASCII ----------------------------------------------
Key: XALANJ-2532 URL: https://issues.apache.org/jira/browse/XALANJ-2532 Project: XalanJ2 Issue Type: Bug Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.) Components: Serialization Affects Versions: 2.7.1 Reporter: Tomasz Wysocki Priority: Minor Code from src/org/apache/xml/serializer/ToStream.java (r475894 from trunk) 721 } else if ( 722 "WINDOWS-1250".equals(encoding) 723 || "US-ASCII".equals(encoding) 724 || "ASCII".equals(encoding)) 725 { 726 setWriterInternal(new WriterToASCI(output), false); causes the encoding spelled "WINDOWS-1250" to be equivalent to basic ASCII character set - but it is not! The workaround is to use encoding spelled as "windows-1250" which is treated correctly and it will not cause problems when encoding characters. Just remove line 722. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org For additional commands, e-mail: xalan-dev-h...@xml.apache.org