Index: library/lib/nx-zip.tcl =================================================================== diff -u -rde25b8ac2f22701d21fead84ccc5793f8f809705 -r2a4dc8bf0bf953bc73e68b6fc990a5a073606354 --- library/lib/nx-zip.tcl (.../nx-zip.tcl) (revision de25b8ac2f22701d21fead84ccc5793f8f809705) +++ library/lib/nx-zip.tcl (.../nx-zip.tcl) (revision 2a4dc8bf0bf953bc73e68b6fc990a5a073606354) @@ -190,7 +190,7 @@ close $fdata set mtime [file mtime $in] } else { - set data $in + set data [encoding convertto utf-8 $in] set mtime [clock seconds] } @@ -327,13 +327,13 @@ } } -if {0} { +if {1} { set z [::nx::zip::Archive new] - $z addFile COMPILE - $z addFile COMPILE.win + $z addFile README.aol + $z addFile COPYRIGHT $z addFile nsfUtil.o $z addFile doc/nx.css - $z addString "This is a file\nfrom a string\n" README + $z addString "This is a file\nthat может be from a string\n" README $z writeToZipFile /tmp/test.zip $z destroy }