I'm using aiohttp client to send request to an URL and collecting the redirected URLs.
In my case, the redirected URL contains Unicode text in it. I want it unmodified.
For eg the actual redirected URL is example.com/förderprojekte-e-v, but aiohttp client auto encodes it & returns me example.com/f\udcf6rderprojekte-e-v.
How to make aiohttp to disable auto encoding of redirected urls.
For requests module, this solution works, but I need help for aiohttp.
My code:
async fetch(url):
#url = 'https://www.example.com/test/123'
async with client.get(url, allow_redirects = True ) as resp:
html = await resp.read()
redir_url = str(resp.url)
#example.com/f\udcf6rderprojekte-e-v
or atleast tell me how to convert \udcf6 to ö