[Edit]
+
0
-
0
JavaScript - convert Blob to text (from UTF-8 bytes)
1 2 3 4 5 6 7 8 9 10const blob = ... // Hint: File is Blob so we can convert read file as text. const text = await blob.text(); // Note: Blob's text() method was introduced around 2019-2020 in the major web browsers. // See also: // // 1. https://dirask.com/snippets/JavaScript-convert-text-to-Blob-text-plain-and-UTF-8-encoding-DlBN4j