Why can't you just use
urldecode("http://en.wikipedia.org/wiki
/Question:_Are_We_Not_Men%3F_Answer:_We_Are_Devo%21")?
On 26/04/07, Mohamed Magdy <mohamed.m.k(a)gmail.com> wrote:
Reid Priedhorsky wrote:
Hi,
I am doing some analysis and need to convert article URLs to article
titles. For example,
http://en.wikipedia.org/wiki/Question:_Are_We_Not_Men%3F_Answer:_We_Are_Dev…
converts to
Question: Are We Not Men? Answer: We Are Devo!
I've been doing some searching around but haven't found a specific
procedure documented anywhere. It looks to me like standard URL
unescaping followed by replacing underscores with spaces, but I wonder
if there is more.
Pointers to documentation or an explanation would be most appreciated.
Thanks,
Reid
http://en.wikipedia.org/wiki/Percent-encoding
http://netzreport.googlepages.com/online_tool_for_url_en_decoding.html
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/wikitech-l
--
Sanjay Sodhi
kshcshbash formerly CNSW