serg472 / htmlcompressor

HTML Compressor and Minifier, can be used standalone and as a Java library
Apache License 2.0
40 stars 15 forks source link

XML files mixed UTF8 / UTF16 #69

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 sachi...@gmail.com on 14 Mar 2012 at 9:28

Attachments:

GoogleCodeExporter commented 8 years ago
Are you suggesting it should autodetect encoding from "<?xml version="1.0" 
encoding="UTF-16"?>"?

Original comment by serg472@gmail.com on 15 Mar 2012 at 12:19

GoogleCodeExporter commented 8 years ago
yes!

Original comment by sachi...@gmail.com on 15 Mar 2012 at 2:36