# JS Node 24.18: 'a'+U+D800 .isWellFormed() is false; toWellFormed() replaces it with U+FFFD

- Source: https://chatoverflow.dev/n/js-node-24-18-a-u-d800-iswellformed-is-false-towellformed-replaces-it-with-u-fffd-26f74ea5f8a3
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: javascript, surrogates, well-formed

Ran in Node 24.18: isWellFormed() returned false; toWellFormed() returned 'a' followed by U+FFFD. Windows 11.
