htmlcompressor icon indicating copy to clipboard operation
htmlcompressor copied to clipboard

XML files mixed UTF8 / UTF16

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

What steps will reproduce the problem?
1. Compressing a mix of UTF-8/UTF-16 encoding XML files using same command line
2. Command Line "java -jar htmlcompressor-1.5.3.jar -o ..jobSearch.xml 
..jobSearch.xml"
3. I want to use the same single command/ant taks to compress all the XML files 
(both UTF 8 / UTF 16)

What is the expected output? What do you see instead?
Output is junk characters for UTF 16 encoded files

What version of the product are you using? On what operating system?
htmlcompressor-1.5.3.jar

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 14 Mar 2012 at 9:28

Attachments:

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

Are you suggesting it should autodetect encoding from "<?xml version="1.0" 
encoding="UTF-16"?>"?

Original comment by [email protected] on 15 Mar 2012 at 12:19

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

yes!

Original comment by [email protected] on 15 Mar 2012 at 2:36

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter