Skip to content

Commit

Permalink
Convert into UTF8
Browse files Browse the repository at this point in the history
Targeting #45 should resolve the issue.
  • Loading branch information
Eisa01 authored Apr 23, 2022
1 parent 1129155 commit 55b83e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/SmartCopyPaste_II.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2188,7 +2188,8 @@ function get_clipboard()
if (-not $clip) {
$clip = Get-Clipboard -Raw -Format FileDropList
}
Write-Output $clip
$u8clip = [System.Text.Encoding]::UTF8.GetBytes($clip)
[Console]::OpenStandardOutput().Write($u8clip, 0, $u8clip.Length)
}]]
}
return handleres(utils.subprocess({ args = args, cancellable = false }), args)
Expand Down

0 comments on commit 55b83e3

Please sign in to comment.