Skip to content

Commit

Permalink
Convert into UTF8
Browse files Browse the repository at this point in the history
This is targeting #45
  • Loading branch information
Eisa01 committed Apr 23, 2022
1 parent 9106262 commit 1129155
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/SmartCopyPaste.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,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 1129155

Please sign in to comment.