Linked Questions

1 vote
0 answers
109 views

How to ImportString "JSON" with Unicode characters? [duplicate]

Update The short answer is that when getting results back from an API into an HTTPResponse object the "Body" property ...
Edmund's user avatar
  • 42k
12 votes
3 answers
814 views

Bug with Json payload with diacritics for HTTPRequest

Working in the creations of APIs with Mathematica 12.2, I got this problem with diacritics when sending JSON data. Here is a toy code using httpbin. ...
Murta's user avatar
  • 26.2k
6 votes
1 answer
439 views

Importing malformed XML: Import[... "XMLObject"] vs ImportString[..., "XML"]

It appears that Import[ url , "XMLObject" ] is more forgiving of improperly formatted XML than ImportString[ string, "XML"]. For ...
mfvonh's user avatar
  • 8,460
3 votes
2 answers
239 views

Bug in WebExecute TypeElement with diacritics characters [Solved]

[Solved in 12.1.1] When using WebExecute TypeElement, I get $Failed if I have a diacritics ...
Murta's user avatar
  • 26.2k
3 votes
2 answers
154 views

Importing from an API that has non UTF-8 strings

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: ...
Matthew Rivers's user avatar
5 votes
1 answer
475 views

Decoding GZIP encoded Body, BodyBytes (ByteArray) and BodyBytesArray from URLRead

When calling the Stack Exchange API v2.2 using the new (Mma11) function URLRead we get a GZIP encoded Body in alternative formats: ...
rhermans's user avatar
  • 36.3k
7 votes
1 answer
452 views

Problem to import numbers longer than 19-digit with "JSON" or "RawJSON"

Bug introduced in 11.0.1 or earlier and fixed in 12.0. MMA 11.0.1.0 (Windows 10, 64-bit) I see that "JSON" import can be buggy (154245), so my question is simple: can the following behaviour be ...
garej's user avatar
  • 4,845
1 vote
1 answer
303 views

Error: Cannot import data as JSON format, Khan Academy API

Problem context I'm updating my working Mathematica Khan Academy reporting application. Since updating to 11.2 I'm having some errors importing via the Khan Academy API as JSON. Update: This ...
Matt Green's user avatar
4 votes
1 answer
160 views

URLRead ignores content-encoding:gzip header

Background Taking an example from Decoding GZIP encoded Body, BodyBytes (ByteArray) and BodyBytesArray from URLRead: ...
Kuba's user avatar
  • 137k
10 votes
0 answers
163 views

URL functions overload

All these functions seem capable of doing the same things: Import, URLFetch, URLSave, ...
M.R.'s user avatar
  • 31.4k