I'm using Microsoft Edge and I am trying to export my requests as HAR JSON file.
Some of these requests and responses contains binary data as payload.
Looking at the generated JSON I can see that those payloads are formatted like: \u0005\u0012...
as I expected.
But in between all these unicode escape sequences there are a lot of � characters... so basically the U+FFFD replacement character.
That's a huge problem for me (and I guess anyone else), because that's mean that the browser or "something" is trying to parse those characters as UTF-8, failed and wrote a replacement character in the JSON instead of the actual content.
That's mean that I won't able to retrieve the original payload content anymore.
Is this something expected?
Is edge parsing everything in UTF-8 since a JSON is actually just a UTF-8 doc and wrongly encoding binary data?
If that's the case, it's basically impossible for Edge to export HAR data with binary content since postData
and content
are not encoded in base64.