mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 00:31:14 +00:00
Declare UTF-8 in the HTML written to the pasteboard. Fixes #3978.
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user