Skip to content

Commit 55b83e3

Browse files
authored
Convert into UTF8
Targeting #45 should resolve the issue.
1 parent 1129155 commit 55b83e3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/SmartCopyPaste_II.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,8 @@ function get_clipboard()
21882188
if (-not $clip) {
21892189
$clip = Get-Clipboard -Raw -Format FileDropList
21902190
}
2191-
Write-Output $clip
2191+
$u8clip = [System.Text.Encoding]::UTF8.GetBytes($clip)
2192+
[Console]::OpenStandardOutput().Write($u8clip, 0, $u8clip.Length)
21922193
}]]
21932194
}
21942195
return handleres(utils.subprocess({ args = args, cancellable = false }), args)

0 commit comments

Comments
 (0)