my $clip = Win32::Clipboard->new('äöü');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/perl use strict; use warnings; use utf8; use File::Temp qw/ tempfile tempdir cleanup /; my $zwAbl = "Ümläutö Россия 中國..."; my $tmpDir = tempdir(CLEANUP => 1); my ($clip, $tmpFile) = tempfile( DIR => $tmpDir ); binmode($clip, ":utf8"); print $clip $zwAbl; system("winclip.exe -c -m -b $tmpFile"); close($clip); cleanup($clip);