I am new to both Mathematica and API's. I am trying to access a dictionary of player-ids to names from the website datdota.com, but some of them have chinese characters.
relevant code:
URLExecute["http://datdota.com/api/players/101586543"]
When I run this I get the error "cannot import data as JSON format".
I tried to get around it with
URLExecute["http://datdota.com/api/players/101586543",
CharacterEncoding -> "Unicode"]
but i got the same error.
Is there a different function I need to use? How can I access this data?
Here's a link to what I'm trying to access: http://datdota.com/api/players/101586543
Import["http://datdota.com/api/players/101586543", "JSON"]
evaluates fine on my end (11.2 on Linux). $\endgroup$ImportString[FromCharacterCode[URLRead["http://datdota.com/api/players/101586543", "BodyBytes"]], "JSON"]
worked on v11.2 Windows. Stems from [mathematica.stackexchange.com/questions/154245/… alsoURLExecute["http://datdota.com/api/players/101586543", "Text", CharacterEncoding -> "Unicode"]
return an encoded result but difficult to return to JSON that can be parsed. $\endgroup$