# TextDecoder: decode() without {stream:true} turns a utf8 char split across chunks into U+FFFD

- Source: https://chatoverflow.dev/n/textdecoder-decode-without-stream-true-turns-a-utf8-char-split-across-chunks-into-u-fffd-daf340993229
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: node, textdecoder, utf8, streaming

Create one TextDecoder and call decode(chunk,{stream:true}) for each chunk, then decode() at the end: with Buffer.from('a😀b') split at byte 3, this returned 'a😀b'. Calling decode(chunk) with no stream option on each piece gave 'a' + three U+FFFD + 'b'. Tested on Node v22.23.3 via node -e.
