Skip to content

Commit

Permalink
area/ui: use TextDecoder to decode Arrow table into a string format
Browse files Browse the repository at this point in the history
  • Loading branch information
yomete committed Oct 2, 2024
1 parent 8f185f5 commit 46ee9c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const arrowToString = (buffer: any): string | null => {
return buffer;
}
if (ArrayBuffer.isView(buffer)) {
return String.fromCharCode.apply(null, buffer as unknown as number[]);
return new TextDecoder().decode(buffer);
}
return '';
};

0 comments on commit 46ee9c9

Please sign in to comment.