There are some garbled characters in the displayed results #170
Replies: 3 comments 4 replies
-
Yea, it's known (#157) but I don't know yet what would be a correct way to solve it. For a workaround, can you try this: $OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding; Write-Host("Size: ", [math]::Round((Get-Item {{file_path:absolute}}).length/1KB), "kB Modified: ", (Get-Item {{file_path:absolute}}).LastWriteTime) The
For this issue, I'd suspect it might relate to input encoding, maybe? But you can try if the above workaround fixes this too. If it does not fix it, can you write here the name/path of the file, including the emoji too? 🙂
There's no way to turn it off at the moment. It doesn't have an error code as it happens in a stage where the shell command is not executed yet (happens during parsing the variables, and when variable parsing fails, the execution is cancelled without any error code). In the future, there will be a way for defining default values for variables, which will allow the execution. This will probably happen the same time when #146 / #159 is implemented, which is among the next things on my radar, but it might take some time until they are done and released. |
Beta Was this translation helpful? Give feedback.
-
Thanks, this works fine.
As long as an emoji expression appears in the file name, an error will be reported. Something like this: 待办(看板)🐓 。Without 🐓, it works fine. |
Beta Was this translation helpful? Give feedback.
-
A solution for {{file_path}}: No file is active at the moment...
@tyf2018 SC version
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, @Taitava
SC version: 0.11.0
obsidian version: 0.13.26
I use the following command and it works almost fine:
However, there are some garbled characters in the displayed results. I guess it is caused by not correctly identifying Chinese, because if I change "Modified" to Chinese, the garbled characters will also be displayed.
Replenish:

When there is an emoji expression in the path, an error will be reported.
Replenish 2:

Is there a way to turn off this prompt? I can't find out what the error code is for it.
Beta Was this translation helpful? Give feedback.
All reactions