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). – J. M.'s missing motivation Mar 27 '18 at 03:57ImportString[FromCharacterCode[URLRead["http://datdota.com/api/players/101586543", "BodyBytes"]], "JSON"]worked on v11.2 Windows. Stems from [https://mathematica.stackexchange.com/questions/154245/who-is-to-blame-parsing-utf8-encoded-json-httpresponse-fails] alsoURLExecute["http://datdota.com/api/players/101586543", "Text", CharacterEncoding -> "Unicode"]return an encoded result but difficult to return to JSON that can be parsed. – Hans Mar 27 '18 at 07:12