Answer the question
In order to leave comments, you need to log in
msg command not sending cyrillic characters?
Good afternoon!
There is a *.bat-file that sends a message to one of the computers inside the locale.
If you specify Russian characters in the text of the message, the recipient will see unreadable characters.
Is it possible to somehow send Russian characters with a command msg?
The command is:
msg * /server:COMPMANAGER /v /w "text with bastard characters"
Answer the question
In order to leave comments, you need to log in
Encoding mismatch. For example, the batch file text is in 866 encoding, and the current (default) console encoding is 1251. This is where unreadable characters are displayed.
At the beginning of the batch file, insert the command
CHCP {кодовая страница}
The batch file itself - must also be in the same encoding that is specified in this command.
Then Cyrillic will be correctly converted.
You can get a guaranteed correct batch file like this:
CHCP 1251
COPY CON filename.BAT
CHCP 1251
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question