We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by @Aqaao in sxyazi/yazi#1921
Windows
wezterm
yazi --debug
None
Windows powershell Chinese character decoding error when use "y" command.
start yazi via "y" alias, select a path that contains Chinese characters, then press "q" quit yazi.
Resolved via add -Encoding UTF8 arg to Powershell wrapper function's line 4.
-Encoding UTF8
$cwd = Get-Content -Path $tmp -Encoding UTF8
Maybe docs should be modified to add this arg ?
mv ~/.config/yazi ~/.config/yazi-backup
The text was updated successfully, but these errors were encountered:
Hey, @sxyazi! The -Encoding UTF8 solution works fine for me.
This is the final one I'd use:
function y { $tmp = [System.IO.Path]::GetTempFileName() yazi --cwd-file="$tmp" $cwd = Get-Content -Path $tmp -Encoding UTF8 if (-not [String]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path) { $cwd = [System.IO.Path]::GetFullPath($cwd) Set-Location -LiteralPath $cwd } Remove-Item -Path $tmp }
Also added GetFullPath, to convert possible / to \, if it ever comes to that.
GetFullPath
/
\
Sorry, something went wrong.
Nice! Would you like to raise a PR to get the credit?
No branches or pull requests
What system are you running Yazi on?
Windows
What terminal are you running Yazi in?
wezterm
yazi --debug
outputDescribe the bug
Windows powershell Chinese character decoding error when use "y" command.
Minimal reproducer
start yazi via "y" alias, select a path that contains Chinese characters, then press "q" quit yazi.
Anything else?
Resolved via add
-Encoding UTF8
arg to Powershell wrapper function's line 4.Maybe docs should be modified to add this arg ?
Validations
yazi --debug
) input box to the nightly that I triedmv ~/.config/yazi ~/.config/yazi-backup
)The text was updated successfully, but these errors were encountered: