From: <ad...@us...> - 2010-11-18 01:41:20
|
Revision: 1211 http://jtidy.svn.sourceforge.net/jtidy/?rev=1211&view=rev Author: aditsu Date: 2010-11-18 01:41:14 +0000 (Thu, 18 Nov 2010) Log Message: ----------- fixed tests 647255 and 649812 - no need to call setXmlDecl for UTF16 encodings (encoding names starting with "Unicode") Modified Paths: -------------- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/Configuration.java Modified: branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/Configuration.java =================================================================== --- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/Configuration.java 2010-11-18 01:15:32 UTC (rev 1210) +++ branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/Configuration.java 2010-11-18 01:41:14 UTC (rev 1211) @@ -442,7 +442,8 @@ // #427837 - fix by Dave Raggett 02 Jun 01 // generate <?xml version="1.0" encoding="iso-8859-1"?> if the output character encoding is Latin-1 etc. - if (!"UTF8".equals(getOutCharEncodingName()) && !"ASCII".equals(getOutCharEncodingName()) && isXmlOut()) { + if (!"UTF8".equals(getOutCharEncodingName()) && !"ASCII".equals(getOutCharEncodingName()) + && !getOutCharEncodingName().startsWith("Unicode") && isXmlOut()) { setXmlDecl(true); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |