Declare UTF-8 in the HTML written to the pasteboard. Fixes #3978.

This commit is contained in:
Brent Simmons committed 2026-08-02 17:29:21 -07:00
1 parent 276fcab290
commit d657be6efa
1 file changed
+3 -1
@@ -57,7 +57,9 @@ extension Article: @retroactive PasteboardWriterOwner {
switch type {
case .html:
return renderedHTML
// Receivers sniff the encoding from the bytes — declare it, or non-ASCII text turns to gibberish.
// <https://github.com/Ranchero-Software/NetNewsWire/issues/3978>
return "<meta charset=\"utf-8\">" + renderedHTML
case .string:
plist = plainText()
case .URL: