node-copy-paste icon indicating copy to clipboard operation
node-copy-paste copied to clipboard

[Windows]: copy/paste of unicode chars not working

Open SrTobi opened this issue 9 years ago • 7 comments

Copy and paste of some unicode chars is not working.

SrTobi avatar Feb 02 '16 11:02 SrTobi

I think i fixed the paste part. See #42. Checkout #42 with the tests here,

The weird thing is that a lot of unicode chars seem to work except ±.

SrTobi avatar Feb 02 '16 11:02 SrTobi

Paste works. Having some trouble with copy though.

notatestuser avatar Apr 28 '16 08:04 notatestuser

How do we feel about piping UTF-8 to clip.exe? This seems to be more reliable than sending UTF-16LE. Adding the BOM is useful in either case but clip.exe copies it to the clipboard along with the text content - not a good solution.

notatestuser avatar May 10 '16 05:05 notatestuser

PowerShell instead of VB Script?

Set-Clipboard("some string.")
$clipData = Get-Clipboard()
Write-Host($clipData) // some string.

mmktomato avatar Jun 05 '16 13:06 mmktomato

@mmktomato the get-clipboard and set-clipboard cmdlets are only available on machines with WMF 5.0, which is certainly not most of them.

notatestuser avatar Jun 06 '16 02:06 notatestuser

I'm seeing this issue trying to copy . Instead, 5" is copied.

Windows 8.1, copy-paste 1.3.0

siegebell avatar Dec 19 '16 04:12 siegebell

I've posted my solution to this in #45.

notatestuser avatar Dec 19 '16 04:12 notatestuser