kiwix / kiwix-android

Kiwix for Android
https://android.kiwix.org
GNU General Public License v3.0
898 stars 447 forks source link

Processing of special characters / URL encoded links is not working as expected #3755

Closed benoit74 closed 7 months ago

benoit74 commented 8 months ago

Description

See https://github.com/openzim/libzim/issues/865#issuecomment-2003154791 for details. We should probably wait for discussion to settle in this issue before developing some on Android, but we most probably have to fix something on Android.

We have a test ZIM at https://tmp.kiwix.org/ci/zim_characters_encoding/characters_encoding.zim with many situations in terms of URL encoding inside an HTML document and corresponding ZIM entry path.

Current Android reader behavior is not aligned with kiwix-serve behavior and will probably have to aligned (again, once discussion on https://github.com/openzim/libzim/issues/865 has settled) :

Environment

kelson42 commented 8 months ago

@MohitMaliFtechiz Very serious bug/topic, please look in priority. I can only insist again than URL parsing should be solid and well tested.

MohitMaliFtechiz commented 8 months ago

@benoit74 Thanks for providing the ZIM file, we have refactored our code to support the URLs in our application at https://github.com/kiwix/kiwix-android/pull/3768. Now it is working like kiwix-server.

benoit74 commented 8 months ago

Great ! I just had a look at the video in PR and confirm the new behavior is exactly as expected. Glad a great test case / ZIM helped to solve this complex topic so fast!

MohitMaliFtechiz commented 8 months ago

@benoit74 Thanks for giving your valuable feedback.

benoit74 commented 7 months ago

I've installed last nightly and can confirm it works as expected from my PoV.