Closed robbiebarrat closed 8 years ago
Hey @robbiebarrat sorry for the late answer.
I need to check if it means your zim files is not correctly encoded, or if gozim sometimes encode URL twice. I have to find some time about it and check it.
I have difficulties downloading the file, but I've tried on the full wikipedia indexed gozim: http://scaleway.nobugware.com/zim/A/29_%28number%29.html, can you please try to find the same page on this one ?
Got the file, some urls are already encoded, (list below), this doesn't happen on other zim files (wikinews, wikipedia ...), as it's difficult/impossible to know correctly if a url has been already encoded or not, I assume this is an error in this particular zim file, should be reported to the zim team.
0 (number) A/wp/0/0_%28number%29.htm
1 (number) A/wp/1/1_%28number%29.htm
Africa (Roman province) A/wp/a/Africa_%28Roman_province%29.htm
Alice in Wonderland (2010 film) A/wp/a/Alice_in_Wonderland_%282010_film%29.htm
Andrew Robinson (actor) A/wp/a/Andrew_Robinson_%28actor%29.htm
Android (operating system) A/wp/a/Android_%28operating_system%29.htm
Arcadia (play) A/wp/a/Arcadia_%28play%29.htm
Aristarchus (crater) A/wp/a/Aristarchus_%28crater%29.htm
Artemis Fowl (novel) A/wp/a/Artemis_Fowl_%28novel%29.htm
Athletics (sport) A/wp/a/Athletics_%28sport%29.htm
Avatar (2009 film) A/wp/a/Avatar_%282009_film%29.htm
Bank of China (Hong Kong) A/wp/b/Bank_of_China_%28Hong_Kong%29.htm
Battle of Amiens (1918) A/wp/b/Battle_of_Amiens_%281918%29.htm
Battle of Smolensk (1943) A/wp/b/Battle_of_Smolensk_%281943%29.htm
Battle of Warsaw (1920) A/wp/b/Battle_of_Warsaw_%281920%29.htm
Bear Island (Norway) A/wp/b/Bear_Island_%28Norway%29.htm
Ben-Hur (1959 film) A/wp/b/Ben-Hur_%281959_film%29.htm
Bongo (antelope) A/wp/b/Bongo_%28antelope%29.htm
Buffy the Vampire Slayer (TV series) A/wp/b/Buffy_the_Vampire_Slayer_%28TV_series%29.htm
C (programming language) A/wp/c/C_%28programming_language%29.htm
Canadian (train) A/wp/c/Canadian_%28train%29.htm
Capital (economics) A/wp/c/Capital_%28economics%29.htm
Captain Marvel (DC Comics) A/wp/c/Captain_Marvel_%28DC_Comics%29.htm
Carolingian Gospel Book (British Library, MS Add. 11848) A/wp/c/Carolingian_Gospel_Book_%28British_Library%2C_MS_Add._11848%29.htm
Casablanca (film) A/wp/c/Casablanca_%28film%29.htm
Casino Royale (2006 film) A/wp/c/Casino_Royale_%282006_film%29.htm
Cell (biology) A/wp/c/Cell_%28biology%29.htm
Ceres (dwarf planet) A/wp/c/Ceres_%28dwarf_planet%29.htm
Chadian Civil War (2005–10) A/wp/c/Chadian_Civil_War_%282005%E2%80%9310%29.htm
Channel 5 (UK) A/wp/c/Channel_5_%28UK%29.htm
Charity (practice) A/wp/c/Charity_%28practice%29.htm
Civil law (legal system) A/wp/c/Civil_law_%28legal_system%29.htm
Civilization (video game) A/wp/c/Civilization_%28video_game%29.htm
Cocos (Keeling) Islands A/wp/c/Cocos_%28Keeling%29_Islands.htm
Colima (volcano) A/wp/c/Colima_%28volcano%29.htm
Conflict (sociology) A/wp/c/Conflict_%28sociology%29.htm
Conservative Party (UK) A/wp/c/Conservative_Party_%28UK%29.htm
Constructivism (art) A/wp/c/Constructivism_%28art%29.htm
Control car (rail) A/wp/c/Control_car_%28rail%29.htm
Copper(I) chloride A/wp/c/Copper%28I%29_chloride.htm
Copper(II) chloride A/wp/c/Copper%28II%29_chloride.htm
Copper(II) nitrate A/wp/c/Copper%28II%29_nitrate.htm
Copper(II) sulfate A/wp/c/Copper%28II%29_sulfate.htm
Countdown (game show) A/wp/c/Countdown_%28game_show%29.htm
Crust (geology) A/wp/c/Crust_%28geology%29.htm
Curl (mathematics) A/wp/c/Curl_%28mathematics%29.htm
DSB (railway company) A/wp/d/DSB_%28railway_company%29.htm
Dark Ages (historiography) A/wp/d/Dark_Ages_%28historiography%29.htm
David Hare (playwright) A/wp/d/David_Hare_%28playwright%29.htm
Degree (angle) A/wp/d/Degree_%28angle%29.htm
Division (mathematics) A/wp/d/Division_%28mathematics%29.htm
Doctor (Doctor Who) A/wp/d/Doctor_%28Doctor_Who%29.htm
Dualism (philosophy of mind) A/wp/d/Dualism_%28philosophy_of_mind%29.htm
Eastern Front (World War II) A/wp/e/Eastern_Front_%28World_War_II%29.htm
Egg (food) A/wp/e/Egg_%28food%29.htm
English ship Ark Royal (1587) A/wp/e/English_ship_Ark_Royal_%281587%29.htm
Eris (dwarf planet) A/wp/e/Eris_%28dwarf_planet%29.htm
Eye (cyclone) A/wp/e/Eye_%28cyclone%29.htm
FIFA (video game series) A/wp/f/FIFA_%28video_game_series%29.htm
Fault (geology) A/wp/f/Fault_%28geology%29.htm
Federal Council (Switzerland) A/wp/f/Federal_Council_%28Switzerland%29.htm
Final Fantasy (video game) A/wp/f/Final_Fantasy_%28video_game%29.htm
Foundation (nonprofit) A/wp/f/Foundation_%28nonprofit%29.htm
Fraction (mathematics) A/wp/f/Fraction_%28mathematics%29.htm
Function (mathematics) A/wp/f/Function_%28mathematics%29.htm
Georgia (country) A/wp/g/Georgia_%28country%29.htm
Glacier National Park (U.S.) A/wp/g/Glacier_National_Park_%28U.S.%29.htm
Go (game) A/wp/g/Go_%28game%29.htm
Gold(III) chloride A/wp/g/Gold%28III%29_chloride.htm
Gone with the Wind (film) A/wp/g/Gone_with_the_Wind_%28film%29.htm
Grand Canal (China) A/wp/g/Grand_Canal_%28China%29.htm
Grand Central Station (Chicago) A/wp/g/Grand_Central_Station_%28Chicago%29.htm
Grand Slam (tennis) A/wp/g/Grand_Slam_%28tennis%29.htm
Grease (film) A/wp/g/Grease_%28film%29.htm
Great Rift Valley (geographical concept) A/wp/g/Great_Rift_Valley_%28geographical_concept%29.htm
Group (mathematics) A/wp/g/Group_%28mathematics%29.htm
Guernica (painting) A/wp/g/Guernica_%28painting%29.htm
HMS Ark Royal (R07) A/wp/h/HMS_Ark_Royal_%28R07%29.htm
Hansel and Gretel (opera) A/wp/h/Hansel_and_Gretel_%28opera%29.htm
Harry Potter (film series) A/wp/h/Harry_Potter_%28film_series%29.htm
History of Poland (1945–1989) A/wp/h/History_of_Poland_%281945%E2%80%931989%29.htm
History of Russia (1992–present) A/wp/h/History_of_Russia_%281992%E2%80%93present%29.htm
Horn (instrument) A/wp/h/Horn_%28instrument%29.htm
Hurricane Alex (2004) A/wp/h/Hurricane_Alex_%282004%29.htm
Hurricane Danny (1997) A/wp/h/Hurricane_Danny_%281997%29.htm
Hurricane Edouard (1996) A/wp/h/Hurricane_Edouard_%281996%29.htm
Hurricane Felix (1995) A/wp/h/Hurricane_Felix_%281995%29.htm
Hurricane John (1994) A/wp/h/Hurricane_John_%281994%29.htm
Hurricane John (2006) A/wp/h/Hurricane_John_%282006%29.htm
Hurricane Marty (2003) A/wp/h/Hurricane_Marty_%282003%29.htm
Hurricane Philippe (2005) A/wp/h/Hurricane_Philippe_%282005%29.htm
ITV (TV network) A/wp/i/ITV_%28TV_network%29.htm
Ice Age (franchise) A/wp/i/Ice_Age_%28franchise%29.htm
Imagine (song) A/wp/i/Imagine_%28song%29.htm
Independent school (United Kingdom) A/wp/i/Independent_school_%28United_Kingdom%29.htm
Inequality (mathematics) A/wp/i/Inequality_%28mathematics%29.htm
Inflation (cosmology) A/wp/i/Inflation_%28cosmology%29.htm
Intersection (set theory) A/wp/i/Intersection_%28set_theory%29.htm
Iron(III) chloride A/wp/i/Iron%28III%29_chloride.htm
Jailhouse Rock (song) A/wp/j/Jailhouse_Rock_%28song%29.htm
Java (programming language) A/wp/j/Java_%28programming_language%29.htm
Jaws (film) A/wp/j/Jaws_%28film%29.htm
John Robinson (bishop of Woolwich) A/wp/j/John_Robinson_%28bishop_of_Woolwich%29.htm
Jupiter (mythology) A/wp/j/Jupiter_%28mythology%29.htm
Kidnapped (novel) A/wp/k/Kidnapped_%28novel%29.htm
King's Regiment (Liverpool) A/wp/k/King%27s_Regiment_%28Liverpool%29.htm
Kite (bird) A/wp/k/Kite_%28bird%29.htm
Kuru (disease) A/wp/k/Kuru_%28disease%29.htm
Labour Party (UK) A/wp/l/Labour_Party_%28UK%29.htm
Lake Albert (Africa) A/wp/l/Lake_Albert_%28Africa%29.htm
Lake Assal (Djibouti) A/wp/l/Lake_Assal_%28Djibouti%29.htm
Lead(II) nitrate A/wp/l/Lead%28II%29_nitrate.htm
Lens (anatomy) A/wp/l/Lens_%28anatomy%29.htm
Limerick (poetry) A/wp/l/Limerick_%28poetry%29.htm
Limit (mathematics) A/wp/l/Limit_%28mathematics%29.htm
Line (geometry) A/wp/l/Line_%28geometry%29.htm
Lone Wolf (gamebooks) A/wp/l/Lone_Wolf_%28gamebooks%29.htm
Luxembourg (city) A/wp/l/Luxembourg_%28city%29.htm
M*A*S*H (TV series) A/wp/m/M%2AA%2AS%2AH_%28TV_series%29.htm
Macedonia (ancient kingdom) A/wp/m/Macedonia_%28ancient_kingdom%29.htm
Madonna (entertainer) A/wp/m/Madonna_%28entertainer%29.htm
Makemake (dwarf planet) A/wp/m/Makemake_%28dwarf_planet%29.htm
Mark Thompson (television executive) A/wp/m/Mark_Thompson_%28television_executive%29.htm
Mastermind (TV series) A/wp/m/Mastermind_%28TV_series%29.htm
Matrix (mathematics) A/wp/m/Matrix_%28mathematics%29.htm
Mercury (element) A/wp/m/Mercury_%28element%29.htm
Mercury (planet) A/wp/m/Mercury_%28planet%29.htm
Messiah (Handel) A/wp/m/Messiah_%28Handel%29.htm
Mini (marque) A/wp/m/Mini_%28marque%29.htm
Minmi (dinosaur) A/wp/m/Minmi_%28dinosaur%29.htm
Mode (statistics) A/wp/m/Mode_%28statistics%29.htm
Mole (animal) A/wp/m/Mole_%28animal%29.htm
Monopoly (game) A/wp/m/Monopoly_%28game%29.htm
Mormon (word) A/wp/m/Mormon_%28word%29.htm
Motion (physics) A/wp/m/Motion_%28physics%29.htm
Narcissus (plant) A/wp/n/Narcissus_%28plant%29.htm
Nene (bird) A/wp/n/Nene_%28bird%29.htm
Nine Years' War (Ireland) A/wp/n/Nine_Years%27_War_%28Ireland%29.htm
Northern Lights (novel) A/wp/n/Northern_Lights_%28novel%29.htm
Nut (fruit) A/wp/n/Nut_%28fruit%29.htm
Oasis (band) A/wp/o/Oasis_%28band%29.htm
One Flew Over the Cuckoo's Nest (novel) A/wp/o/One_Flew_Over_the_Cuckoo%27s_Nest_%28novel%29.htm
Operator (mathematics) A/wp/o/Operator_%28mathematics%29.htm
Orbit (anatomy) A/wp/o/Orbit_%28anatomy%29.htm
Organ (music) A/wp/o/Organ_%28music%29.htm
Pedology (soil study) A/wp/p/Pedology_%28soil_study%29.htm
Periodic table (large version) A/wp/p/Periodic_table_%28large_version%29.htm
Phase (matter) A/wp/p/Phase_%28matter%29.htm
Phoenix (spacecraft) A/wp/p/Phoenix_%28spacecraft%29.htm
Pirates of the Caribbean (film series) A/wp/p/Pirates_of_the_Caribbean_%28film_series%29.htm
Plane (geometry) A/wp/p/Plane_%28geometry%29.htm
Plasma (physics) A/wp/p/Plasma_%28physics%29.htm
Plone (software) A/wp/p/Plone_%28software%29.htm
Propeller (marine) A/wp/p/Propeller_%28marine%29.htm
Python (programming language) A/wp/p/Python_%28programming_language%29.htm
Queen (band) A/wp/q/Queen_%28band%29.htm
Race (human classification) A/wp/r/Race_%28human_classification%29.htm
Rebecca Clarke (composer) A/wp/r/Rebecca_Clarke_%28composer%29.htm
Requiem (Mozart) A/wp/r/Requiem_%28Mozart%29.htm
Requiem (Verdi) A/wp/r/Requiem_%28Verdi%29.htm
Rhodium(III) chloride A/wp/r/Rhodium%28III%29_chloride.htm
Richard III (play) A/wp/r/Richard_III_%28play%29.htm
Rock (geology) A/wp/r/Rock_%28geology%29.htm
Rook (bird) A/wp/r/Rook_%28bird%29.htm
Safari (web browser) A/wp/s/Safari_%28web_browser%29.htm
Saint Joan (play) A/wp/s/Saint_Joan_%28play%29.htm
Salt (chemistry) A/wp/s/Salt_%28chemistry%29.htm
Sampling (statistics) A/wp/s/Sampling_%28statistics%29.htm
Santa María (volcano) A/wp/s/Santa_Mar%C3%ADa_%28volcano%29.htm
Sarai (city) A/wp/s/Sarai_%28city%29.htm
Sasha (DJ) A/wp/s/Sasha_%28DJ%29.htm
Scent of a Woman (1992 film) A/wp/s/Scent_of_a_Woman_%281992_film%29.htm
Scout (Scouting) A/wp/s/Scout_%28Scouting%29.htm
Scratch (programming language) A/wp/s/Scratch_%28programming_language%29.htm
Service (economics) A/wp/s/Service_%28economics%29.htm
Set (mathematics) A/wp/s/Set_%28mathematics%29.htm
Shackleton (crater) A/wp/s/Shackleton_%28crater%29.htm
Shenzhou (spacecraft) A/wp/s/Shenzhou_%28spacecraft%29.htm
Shrek (franchise) A/wp/s/Shrek_%28franchise%29.htm
SimCity (1989 video game) A/wp/s/SimCity_%281989_video_game%29.htm
Sky (UK and Ireland) A/wp/s/Sky_%28UK_and_Ireland%29.htm
Sonic the Hedgehog (character) A/wp/s/Sonic_the_Hedgehog_%28character%29.htm
Speaker of the House of Commons (United Kingdom) A/wp/s/Speaker_of_the_House_of_Commons_%28United_Kingdom%29.htm
Spring (season) A/wp/s/Spring_%28season%29.htm
Squash (sport) A/wp/s/Squash_%28sport%29.htm
Stage (theatre) A/wp/s/Stage_%28theatre%29.htm
Stock car (rail) A/wp/s/Stock_car_%28rail%29.htm
Sunset Boulevard (film) A/wp/s/Sunset_Boulevard_%28film%29.htm
Symphony No. 6 (Beethoven) A/wp/s/Symphony_No._6_%28Beethoven%29.htm
Symphony No. 9 (Beethoven) A/wp/s/Symphony_No._9_%28Beethoven%29.htm
The Birth of Venus (Botticelli) A/wp/t/The_Birth_of_Venus_%28Botticelli%29.htm
The Famous Five (series) A/wp/t/The_Famous_Five_%28series%29.htm
The Four Seasons (Vivaldi) A/wp/t/The_Four_Seasons_%28Vivaldi%29.htm
The Last Supper (Leonardo da Vinci) A/wp/t/The_Last_Supper_%28Leonardo_da_Vinci%29.htm
The Lord of the Rings (film series) A/wp/t/The_Lord_of_the_Rings_%28film_series%29.htm
The Twilight Saga (film series) A/wp/t/The_Twilight_Saga_%28film_series%29.htm
Thrush (bird) A/wp/t/Thrush_%28bird%29.htm
Tin(II) chloride A/wp/t/Tin%28II%29_chloride.htm
Titanic (1997 film) A/wp/t/Titanic_%281997_film%29.htm
Trinity (nuclear test) A/wp/t/Trinity_%28nuclear_test%29.htm
Tropical Storm Odette (2003) A/wp/t/Tropical_Storm_Odette_%282003%29.htm
Turkey (bird) A/wp/t/Turkey_%28bird%29.htm
Typhoon Ewiniar (2006) A/wp/t/Typhoon_Ewiniar_%282006%29.htm
U.S. Open (golf) A/wp/u/U.S._Open_%28golf%29.htm
US Open (tennis) A/wp/u/US_Open_%28tennis%29.htm
Valence (chemistry) A/wp/v/Valence_%28chemistry%29.htm
War in Afghanistan (2001–present) A/wp/w/War_in_Afghanistan_%282001%E2%80%93present%29.htm
War in Somalia (2006–2009) A/wp/w/War_in_Somalia_%282006%E2%80%932009%29.htm
Warsaw Uprising (1794) A/wp/w/Warsaw_Uprising_%281794%29.htm
Western Front (World War I) A/wp/w/Western_Front_%28World_War_I%29.htm
William Gilbert (astronomer) A/wp/w/William_Gilbert_%28astronomer%29.htm
Work (physics) A/wp/w/Work_%28physics%29.htm
Work (thermodynamics) A/wp/w/Work_%28thermodynamics%29.htm
Yam (vegetable) A/wp/y/Yam_%28vegetable%29.htm
e (mathematical constant) A/wp/e/e_%28mathematical_constant%29.htm
Wow thank you so much - it really helps with my project
I'm running gozim with wikipedia for schools, and whenever a link with parenthesis (or any symbol, really) in the title is clicked, I get a 404 error For example, the page titled "0 (number)" causes errors. The link on the page leads to: localhost:8080/zim/A/wp/0/0%2528number%2529.htm but when it is clicked there is a 404 error, and in the address bar is localhost:8080/zim/A/wp/0/0%28number%29.htm I'm unsure about whether or not this is a gozim error, but I've tried it with various browsers and all of them seem to remove the "25"s and then I get a 404. If you want to try and replicate this -- the ZIM file is here (it's ~2 gigs) http://download.kiwix.org/zim/wikipedia_en_for-schools.zim
EDIT: if it helps the hardware i'm using is a raspberry pi A+, and I've tried it with browsers netsurf, epiphany, and dillo only to get the same result
EDIT: I determined the exact problem, but am unable to solve it. Basically, "The way you get %2520 is when your url already has a %20 in it, and gets urlencoded again, which transforms the %20 to %2520" (source: http://stackoverflow.com/questions/16084935/a-html-space-is-showing-as-2520-instead-of-20) so it's encoding the URL twice -- is there a way to fix this?