Hi,
I am trying to query wiki with user entered title, this is url that is created https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&utf8=&exintro=&explaintext=&redirects=&titles=indian%20institute%20of%20science
this gives following output {"batchcomplete":"","query":{"normalized":[{"from":"indian institute of science","to":"Indian institute of science"}],"pages":{"-1":{"ns":0,"title":"Indian institute of science","missing":""}}}}
however if i manually edit the url to https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&utf8=&exintro=&explaintext=&redirects=&titles=Indian%20Institute%20of%20Science
note: first letter of words capitalised. then it gives desired output
But, since it is not feasible to know when/what to capitalise, how do I resolve this.
Regards, Ashok