-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zim file open incorrectly on iOS 9 and 11 #73
Comments
Which zim file are you using? |
Here's the reply (if it makes sense - if not I'll ask to clarify): "The question of what file maybe the issue. I did also download the small 6mb dictionary which I think works fine, on iPhone 6 iOS 11. The original was the Wikipedia 0.8 feb 15,2011 . |
Without knowing the name of the specific zim file in question, we cannot further investigate. Also please try re-download the latest version of Kiwix from App Store on the device running iOS 11. |
File name is wikipedia_en_wp1-0.8_orig_2010-12.zim |
"Both devices have reinstalled. |
This is likely an zim file issue. Closed due to lack of activity. |
@automactic Can you confirm it works for you? |
This issue is not easy to be reproduced for me, since I have no idea where I should get the zim in question (wikipedia_en_wp1-0.8_orig_2010-12.zim) Also the user mentioned:
Also 9.3.5 is no longer supported. I don't see a point of keeping this open. |
@automactic We need at least to verify the newest version of Kiwix does not have the problem. The file is available here https://download.kiwix.org/zim/wikipedia/wikipedia_en_wp1-0.8_orig_2010-12.zim |
I confirme that the pb is still there with 1.9 |
I did some investigation. I found this problem is caused by string encoding. The GET request of main page of wikipedia_en_wp1-0.8_orig_2010-12.zim is as follows: If you take a look at, for example, line 77 of data.txt. You can find strings like |
@automactic What is the exact problem? What should be delivered instead of that? |
@kelson42 I do not know |
@kelson42 Another interesting thing I found is, pretty much in all other zim files, the mime of a html would be Also, I noticed, the htmls in the problematic zim file have |
@automactic I'm not surprised about the problem with the mime-type. If it works well with your approach, then this was probably the best thing to do :) Thx. We can close the ticket then I think. |
Are you saying I should always replace |
@automactic You have a better alternative? |
No, but we should not having this kind of hardcoding in the app. What if someday we do indeed need |
@automactic As far as I know |
Mmm, yes. This does seems to be an iOS only issue. I have also tested setting all html mime as Will add the fix in the next beta. |
As far I can see this bug is fixed in 1.9 (7) 👍 |
@automactic Sorry, but the bug seems to have reappeared (both for ICS and Wikipedia 0.8 file). |
OK, I think I have found a better fix for this issue. Instead of using the designated initializer of Please check in 1.9 (11) |
Works again |
I'm copy-pasting the exchange I had with the user (+screenshot):
"I have tried on an iPad 2 running 9.3.5 (downloaded with jailbreak running) and I cannot open the zim file I downloaded from the app.
It did initially open but it looked like it was the css code , I did reboot into 9.35 no jailbreak and it simply does not open. Would this be because I am using a 32 bit device perhaps ? I have not attempted this on an iPhone 6 with current iOS 11 but will try later I'm sure. It will not download any other files and just crashes although I have several gb free space."
And then...
"Well I transferred the Wikipedia zim file to an iPhone 6 updated to the new iOS and see the same as what I saw once on the iPad ...."
The text was updated successfully, but these errors were encountered: