TUnzipper cannot handle files with accentuated characters
Original Reporter info from Mantis: HomeBoy
-
Reporter name: HomeBoy TAZ
Original Reporter info from Mantis: HomeBoy
- Reporter name: HomeBoy TAZ
Description:
If the file name (or directory name) stored contains accentuated characters, TUnzipped seems to report question marks only (character of substitution in case of unhandled character).
I tried several UTF8ToAnsi/AnsiToUTF8/UTF8ToSys/SysToUTF8 conversions, but I still get either a question mark or another wrong character.
Steps to reproduce:
Extract of code:
var
ZipFile: TUnZipper;
begin
ZipFile := TUnZipper.Create;
ZipFile.FileName := Utf8ToAnsi(MyPath + '\' + sr.Name); // To handle accentuated characters in the Path/FileName
ZipFile.Examine;
ShowMessage(ZipFile.Entries[0].ArchiveFileName);
ZipFile.Free;
end;
Additional information:
I believe the issue is the same on Asian versions.
I also suspect the whole paszlib (TZipper, TUnZipper, ...) to be affected, whatever platform used
Mantis conversion info:
- Mantis ID: 25982
- OS: Windows
- OS Build: 7 x64
- Platform: Intel
- Version: 1.2.0
- Fixed in version: 3.1.1
- Fixed in revision: 33360 (#b000a31a)
- Target version: 3.0.2