SIGN IN SIGN UP

Fix: handle surrogate pairs in FileHistory.store_string (#2062)

FileHistory.store_string crashes with UnicodeEncodeError when the
input string contains surrogate pairs (e.g., from Windows clipboard
containing emoji). Add errors='replace' to gracefully handle invalid
surrogates by replacing them with the Unicode replacement character.

Fixes #2061
J
Jiajun committed
42f2251b6b9708f4d9970527774f38c65ab9364a
Parent: 9146317
Committed by GitHub <noreply@github.com> on 5/14/2026, 9:45:41 AM