What I'm trying to achieve should be rather straightforward although PowerShell is trying to make it hard.
I want to display the full path of files, some with Arabic, Chinese, Japanese and Russian characters in their names.
I always get some undecipherable output, such as the one shown below:
The output seen in the console is being consumed as is by another script. The output contains ? instead of the actual characters.
The command executed is
(Get-ChildItem -Recurse -Path "D:\test" -Include *unicode* | Get-ChildItem -Recurse).FullName
Is there an easy way to launch PowerShell (via the command line or in a fashion that can be written into a script) such that the output is seen correctly?
P.S. I've gone through many similar questions on Stack Overflow, but none of them have much input other than calling it a Windows Console Subsystem issue.