unzip cannot create non-utf8 files on APFS
unzip cannot create files on APFS if filename is not in utf8 encoding:
error: cannot create <FILENAME_WITH_NON-UTF8_ENCODING>
Illegal byte sequence
This is frustrating because unzip has no options to change filename encoding, and the original encoding may not be known anyway. Other programs may have the same problem when trying to create a non-utf8 file.
It would be much better for APFS to create a file with any automatic substitution of illegal characters, than to not create the file at all. Is there any environment setting for this behavior?
HFS+ disk image does not have this issue (it substitutes any invalid byte with the 3-byte string %HH, where HH is the byte in hex). As a temporary solution I unzip into an HFS+ disk image and then copy from there into APFS. Is there a better way?
MacBook Pro (13-inch, Late 2016, 4 TBT3), macOS High Sierra (10.13.2), null