From jeroen @end|ng |rom berke|ey@edu  Sat May 25 23:34:17 2019
From: jeroen @end|ng |rom berke|ey@edu (Jeroen Ooms)
Date: Sat, 25 May 2019 14:34:17 -0700
Subject: [Rd] writing Unicode text to the Windows clipboard
In-Reply-To: <CANe9BHG6LFE2kKRJ=xB8Tpz-krDw0WiSS0n+25po9f-2FxZkHw@mail.gmail.com>
References: <CANe9BHG6LFE2kKRJ=xB8Tpz-krDw0WiSS0n+25po9f-2FxZkHw@mail.gmail.com>
Message-ID: <CABFfbXsygNgD5hobQkOUteCOeeDFRnOgpnXUzhJK+vuvHA5qXg@mail.gmail.com>

On Fri, May 24, 2019 at 12:06 AM Jennifer Bryan <jenny at rstudio.com> wrote:
>
> Hello,
>
> I'm interested in moving text from and to the clipboard that cannot
> necessarily be represented in the native encoding. So, really, this is
> about Windows.
>
> I can successfully read from the clipboard by specifying the format that
> corresponds to unicode text.
>
> From R >=2.7.0, it seems you should also be able to write unicode text
> to the Windows clipboard.
>
> https://github.com/wch/r-source/blob/5a156a0865362bb8381dcd69ac335f5174a4f60c/src/gnuwin32/CHANGES0#L535-L536

Thanks!

I tested this and can confirm that this patch works. With this change,
any (non ascii) unicode text now properly copies and pastes from/to
the Windows clipboard.



[Rd] writing Unicode text to the Windows clipboard
Jeroen Ooms