I have a problem with the output line being formatted in utf8 format. I am currently writing the ansi line for a zip file without problems, for example:
StreamReader tr = new StreamReader( "myutf8-file.xml");
String myfilecontent = tr.ReadToEnd();
ZipFile zip = new ZipFile());
zip.AddFileFromString("my.xml", "", myfilecontent );
How to force a string (contents of my.xml file) to be UTF8.
source
share