Zipping a UTF-16 encoded XML file

Apr 11, 2011 at 2:45 PM
Edited Apr 11, 2011 at 2:45 PM

I try to zip a XML file that's UTF-16 encoded and may contain unicode (Chinese, Japanese, etc.) characters.

When no unicode characters are present, there's no problem. But when the xml files contains some unicode characters, the become ?? after zip/unzip.
(I'm talking about the contents of the xml file and not the filename)

What am I doing wrong?

Apr 13, 2011 at 12:12 PM

I don't know what you're doing wrong, but if you show the code you use to extract, I might be able to help.

DotNetZip doesn't change or encode the contents of files. It encodes only the filenames (and maybe comments). So, it's likely the problem is in your own code.