artlantis / htmlcompressor

Automatically exported from code.google.com/p/htmlcompressor
Apache License 2.0
1 stars 1 forks source link

XML files mixed UTF8 / UTF16 #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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 9 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 9 years ago
yes!

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