[w3c/clipboard-apis] Write UTF-8 data to the clipboard. (Issue #217)

Popular native apps on Windows read formats like `image/svg+xml` in UTF-8 form [1]. 
In the spec, before the payload for a format gets written to the clipboard, the content is converted from UTF-8 into scalar values. Spec text "Let payload be the result of [UTF-8 decoding](https://encoding.spec.whatwg.org/#utf-8-decode) item’s underlying byte sequence."(https://w3c.github.io/clipboard-apis/#write-blobs-and-option-to-the-clipboard).
Should this text be changed to write [UTF-8 encoded](https://encoding.spec.whatwg.org/#utf-8-encode) data directly to the clipboard?

[1] https://docs.google.com/document/d/1ULlihA0FOJOqcyD9MgzLZrAbk0uTQPJqDPuPJ2aiuS4/edit?usp=sharing

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/217
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/217@github.com>

Received on Thursday, 13 June 2024 00:13:44 UTC