mockingbot / react-native-zip-archive

Zip archive utility for react-native
MIT License
420 stars 154 forks source link

charset GBK or UTF-8 is no work in ios #273

Closed donghuiqiu closed 10 months ago

donghuiqiu commented 1 year ago

Describe the bug charset GBK or UTF-8 is no work on ios,and the zip files are from windows mechine use GBK to zip

To Reproduce charset GBK or UTF-8 or US-ASCII , I try all and none of them working, android works fine with GBk

图片 图片

Expected behavior

There's some special chars in xxxx.zip

Env (please complete the following information):

donghuiqiu commented 1 year ago

I solved

plrthink commented 1 year ago

Could you share how you solve the problem?

plrthink commented 1 year ago

Actually, we don't use the charset you provided on the iOS platform since it's supposed to be working automatically by the ZipArchvice library, which is used under the hood.

donghuiqiu commented 1 year ago

I changed kCFStringEncodingDOSLatinUS to kCFStringEncodingGB_18030_2000 in file SSZipArchive.m, it works for me

------------------ 原始邮件 ------------------ 发件人: "mockingbot/react-native-zip-archive" @.>; 发送时间: 2022年11月26日(星期六) 晚上6:20 @.>; @.**@.>; 主题: Re: [mockingbot/react-native-zip-archive] charset GBK or UTF-8 is no work in ios (Issue #273)

Actually, we don't use the charset you provided on the iOS platform since it's supposed to be working automatically by the ZipArchvice library, which is used under the hood.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>