UTF-8 text to clipboard C
问题 I have been looking around on how to bring a string, const char* output = "ヽ(⌐■_■)ノ♪♬"; to the clipboard. SetClipboardData(CF_UNICODETEXT, hMem); I have tried MultiByteToWideChar, but I have gotten only noise and also conflicting claims that you cannot save UTF-16LE to clipboard (wchar_t). Honestly I am just confused. A direction or code sample would be great. 回答1: Windows uses UTF-16LE. The string should be created with L prefix. To use UTF8 you can declare the string with u8 prefix. For