[Rd] writing Unicode text to the Windows clipboard
Jeroen Ooms
jeroen @end|ng |rom berke|ey@edu
Sat May 25 23:34:17 CEST 2019
On Fri, May 24, 2019 at 12:06 AM Jennifer Bryan <jenny using 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.
More information about the R-devel
mailing list