Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1052

Displaying Unicode in PowerShell

$
0
0

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:

Enter image description here

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.


Viewing all articles
Browse latest Browse all 1052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>