Windows builtin PowerShell
$PSVersionTable
Name Value
---- -----
PSVersion 5.1.18362.145
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.145
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
cd desktop
mkdir γγγγγ
cd γγγγγ
New-Item γγγγγ.txt
$OutputEncoding.EncodingName # US-ASCII by default
ls | clipboard.exe --copy
<#
??????: C:\Users\UserName\Desktop\?????
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2020/02/04 9:33 0 ?????.txt
#>
$OutputEncoding = [System.Text.Encoding]::UTF8
ls | clipboard.exe --copy
ο»Ώ
<#
γγ£γ¬γ―γγͺ: C:\Users\UserName\Desktop\γγγγγ
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2020/02/04 9:33 0 γγγγγ.txt
#>
$OutputEncoding = [System.Text.Encoding]::Unicode
ls | clipboard.exe --copy
thread 'main' panicked at 'Error: Could not copy to clipboard: Error { repr: Custom(Custom { kind: InvalidData, error: StringError("stream did not contain valid UTF-8") }) }', src\libcore\result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too