|
|
发表于 2026-7-13 22:53:53
|中国|
显示全部楼层
本帖最后由 1up 于 2026-7-13 23:39 编辑
https://wiki.romvault.com/doku.php?id=torrentzip
我觉着乱码跟文件名编码有关系,期待楼主跟进
要不就是osd 中文显示有变动?
Filename Encoding
The filenames of the compressed files in a zip file are stored in the local header and the central directory as byte arrays. Zip was original build on early IBM PCs, and as such uses code page 437 to convert a string to a byte array to store the filenames. With the arrival of unicode multiple different methods where added to the official zip format to permit unicode filenames to be stored in a zip file. Trrntzip format uses the general purpose bit 11 method. So to store a filename in a trrntzip zip file you must first see if the filename can be stored using code page 437, if not then UTF8 encoding should be used in the byte arrays, this is then indicated by setting bit 11 of the General Purpose Bit Flags both in the local header and central directory.
|
|