es.exe is returning ? in place of emojis in the folder name

General discussion related to "Everything".
Post Reply
hardik
Posts: 2
Joined: Mon Sep 02, 2019 4:24 pm

es.exe is returning ? in place of emojis in the folder name

Post by hardik » Tue Nov 19, 2019 1:45 pm

Considering a scenario wherein a folder is present under D drive bearing name as seen in the attachment named ActualFolderName. Then the command es.exe parent:"D:" returns the result as seen in the attachment named "Capture". Is there a way in which the actual folder name can be returned using the es command?

Any help regarding the above will be appreciated.

Thank you for the help.
You do not have the required permissions to view the files attached to this post.

NotNull
Posts: 1595
Joined: Wed May 24, 2017 9:22 pm

Re: es.exe is returning ? in place of emojis in the folder name

Post by NotNull » Tue Nov 19, 2019 3:07 pm

How characters are shown is dictated by 2 factors:
1. codepage
2. font

1. Codepage
You need to select a codepage that contains the characters you want. No guarantee that this works as it might be possible that some chars are only in codepage 1 and others only in codepage 2.

Check the current codepage in CMD by issuing the command CHCP
Change the codepage to - for example - unicode by issuing the command CHCP 65001
More on CHCP


2. Font
The font you use in CMD must have support for these special characters (if it isn't in the font, it can't be shown).
Try Lucida Console.
You can change the font by right-clicking the CMD title bar and choosing Properties.


CMD has very limited support for unicode characters, so I have my doubts if you can make this work.
The good news: If you export the results to a file, it will be UTF8 encoded and thus have support for special characters.
(try: es.exe parent:"D:" -export-txt output.txt )

Post Reply