1
I’m working with wikipedia, and I’m having some coding problems. When I add such a link in my browser everything works fine:
https://en.wikipedia.org/wiki/A%C5%9Bvagho%E1%B9%A3a
That goes in the article with the name sequinte:
https://en.wikipedia.org/wiki/Aśvaghoṣa
Which is the same article but the url is being shown differently. In other words, there is an encoding occurring there.
But I’m mining wikipedia topviews:
And in the case of this article I received this same title with the following name through the API:
"A\u015bvagho\u1e63a": {
"assessment": "Stub",
"num_users": 1,
"assessment_img": "f/f5/Symbol_stub_class.svg",
"num_edits": 1
},
But when I try to mount the url sequinte:
https://en.wikipedia.org/wiki/A\u015bvagho\u1e63a
Sure doesn’t work.
What I want to know how I can encode this way (In python3):
A\u015bvagho\u1e63a -> A%C5%9Bvagho%E1%B9%A3a