question

lmeza-1328 avatar image
0 Votes"
lmeza-1328 asked PercivalYang-MSFT commented

Unicode Error when trying to use Command Prompt with USB Flash drive or SD Card

I have problems when trying to use unicode characters like Russian characters (Cyrillic) on the Command Prompt (CMD). This problem only happens when I am on USB Flash drive or SD Card, which use FAT32. I use Windows 7 Ultimate 64-bits.

For instance, when I am on F:\ and try to open "F:\Что-то.docx" the error I get is:

"No mapping for the unicode character exists in the target multi-byte code page."

However, when I open files with latin characters "Hello.docx" works ok. When I use NTFS Hard Drive (C,D) works ok without errors too, so it seems that it only happens when using external drivers.

I have also try CHCP 65001 before starting with other lines but doesn't help.

112446-error.jpg

Thanks for the reply.


windows-7
error.jpg (57.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PercivalYang-MSFT avatar image
0 Votes"
PercivalYang-MSFT answered PercivalYang-MSFT commented

Hi,
@lmeza-1328
From your description, the error is due to removable drives, while, you can try use a NTFS format USB disk to furtherly verify your presumption.
Beside, you can change the font of command prompt to Lucida Console.112764-1.png


And then have another try by changing the code page to Windows-1253 or 866. You do this on the command prompt by "chcp 1253", or chcp 866 and chcp 65001 again.
The last step. Check the language for non-Unicode programs. A better cleaner thing to do: Just install the available, free, Microsoft Russian language pack.
112817-2.png


Hope this can help you
If your need further help, be free reply to me at your convenience.

==============================================================================
If the Answer is helpful, please click "Accept Answer" and upvote it




1.png (32.8 KiB)
2.png (40.3 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Ok, I have tried all options you gave. However, none of the given worked. Nor changing to Lucida Console, neither changing chcp code, or Region Setting.

I still get the same "no mapping" error.

113097-error-1.jpg



Any other ideas?

0 Votes 0 ·
error-1.jpg (64.3 KiB)

Hi
I'm going to create a win7 environment to simulate the issue, and contrary to the same situation on win10, Just to verify if this is an existed win7 issue or individual case on your PC.
Thanks for your patience in advance. by the way you can try use Word to open the file directly to see whether it works.


Best Regards
Percival Yang

0 Votes 0 ·

I have discovered that using the short 8.3 version of the file name with "dir /x" finally works on CMD.
However still get the error when trying to open directly Bat files with Unicode characters on the file name.
Is there any solution for that?

0 Votes 0 ·
Show more comments