Topic: Unicode streams
Is it possible to store unicode files when using AddStream? In the following code the unicode characters get corrupted. If the same unicode text is stored in a utf-8 file (TestData.txt) and I uncomment the AddFile line the text is stored perfectly. Can you help?
Framework brl.Basic
Import gman.zipengine' Create our zipwriter object
Local zwObject:ZipWriter = New ZipWriter
Local bank:TBank = CreateBank()
Local bankfile:TBankStream = CreateBankStream(bank)
WriteLine(bankfile, "??????Šš??????????????????????Ÿ????Žž?????????????")If (zwObject.OpenZip("data.zip", False))
'zwObject.AddFile("TestData.txt")
zwObject.AddStream(bankfile, "BankTestData.txt")
zwObject.CloseZip()
End If