Skip to content

The encoded data was not valid for encoding utf-8 #187

Answered by 101arrowz
denniske asked this question in Q&A
Discussion options

You must be logged in to vote

That file is 533MB decompressed, but strings in JavaScript can be at most 512MB. In other words, it's not possible to decompress this data to a single string in JavaScript at all, no matter what library you use.

You can try to solve this by decompressing the data in a stream and using a streaming JSON parser; let me know if you want more info on how to do that.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@denniske
Comment options

@101arrowz
Comment options

@denniske
Comment options

@101arrowz
Comment options

@denniske
Comment options

Answer selected by 101arrowz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #186 on October 10, 2023 13:17.