Sonnich Posted June 17, 2020 Share Posted June 17, 2020 Hi all I am updating a old system to transfer files, and implementing download data as zip. My client want to move to a new ISP due to problems with the current ISP The old system run "5.5.38-1~dotdeb+7.1" (not sure how to read it, why plus seven?), and the new systenm "7.2.31-pl0-zoneos". The code, same on both can zip and unzip. However the old system causes me problems as: 1) the new system can handle non English characters, the old cannot, eg replacing Ü with _ and ä with õ. How can I get around this? 2) the old system can make a zip and I can download it. However on win7 and some old zip stuff there I can open it. I cannot upload to the new server, I get error 19, not a valid zip. Same when downloading to win10, it cannot open the zip. 7-zip cannot open it either. The old system can accept the zip from it self. Zips from my windows both 7 and 10 can upload to both as well as zip from the new system. No problems. A work-around - I download the weird zip on win7, unzip and re-zip with windows and upload to the new system. It works, it just leaves me with some weird character. There are 7705 files so I will not correct it manually. So my problems is, some old system running "5.5.38-1~dotdeb+7.1" cannot handle non-English characters and the zip is not valid. Does anyone have any idea how to handle the charcaters, and maybe - why the zip is in an old format not readable by newer systems? Quote Link to comment https://forums.phpfreaks.com/topic/310948-zip-on-old-systems-php-55-transfer-to-new-system/ Share on other sites More sharing options...
requinix Posted June 17, 2020 Share Posted June 17, 2020 1. You don't "get around" it. You fix it. Likely by updating some php.ini settings to match how 5.5 worked. Note that there were a lot of changes to how character encoding works in PHP so you cannot simply copy and paste settings. 2. This could be an encoding problem. Fix that first. Quote Link to comment https://forums.phpfreaks.com/topic/310948-zip-on-old-systems-php-55-transfer-to-new-system/#findComment-1578952 Share on other sites More sharing options...
Sonnich Posted June 17, 2020 Author Share Posted June 17, 2020 Yes I would like to fix it. The broken zip I have found. Any suggestions what to look at for the encoding problems? I feel lost and I am asking for help.... Quote Link to comment https://forums.phpfreaks.com/topic/310948-zip-on-old-systems-php-55-transfer-to-new-system/#findComment-1578956 Share on other sites More sharing options...
requinix Posted June 17, 2020 Share Posted June 17, 2020 There are a number of migration guides available to take you from 5.5 to 7.2. You should look through them for this upgrade process regardless of the encoding issue. Spoiler: you need to care about the default_charset at a minimum. The input/output/internal_encodings probably won't matter. Quote Link to comment https://forums.phpfreaks.com/topic/310948-zip-on-old-systems-php-55-transfer-to-new-system/#findComment-1578960 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.