Wikipedia API returns encoded text for foreign language

I am trying to get some data from a Wikipedia page. I use this URL to get the data: https://el.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=δίας You can open the URL with your browser to see how it looks. My problem is that the data is encoded and I don’t know how to decode them from my android app. What I… Read More Wikipedia API returns encoded text for foreign language

Take an argument with spaces as a single string from Discord input

Good evening. In normal cases, taking an argument with spaces in a function only requires you to encapsulate the argument with quotes. This works for most uses, but this one differs since I’m using the Discord interface to process inputs. I’m fetching a Wikipedia article based on user input: import wikipedia … @commands.command() async def… Read More Take an argument with spaces as a single string from Discord input