I hit a similar problem in an application that was performing non-unicode-aware string operations on user-submitted text in a typescript codebase. The data couldn't be processed by an external service that was expecting valid Unicode. My fix was using toWellFormed: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
HN user
denzen
4 karma
Posts1
Comments4
My Favorite Bugs: Invalid Surrogate Pairs 2 months ago
How I write software with LLMs 4 months ago
Pine Town is a whimsical infinite multiplayer canvas of a meadow, where you get your own little plot of land to draw on. Most people draw… questionable content
Doesn't help that _pine_ is one way of saying penis in french
You might want to watch this: https://www.youtube.com/watch?v=yFIa-Mc2KSk I've been struggling with this as well at times.
Standing Desk Do It Yourself (DIY) 12 years ago
See also this Grip Desk setup : https://www.youtube.com/watch?v=ySEBqNAnyjk (video is by Solarized’s theme author, Ethan Schoonover).