Reputation:
How do I add unicode support in my batch file? I tried saving it as unicode and utf-8 but it still doesn't display foreign text properly. Example file:
@echo off
echo привет
pause
Upvotes: 0
Views: 343
Reputation: 8151
From Wikipedia
The active OEM code page can be changed by the MS-DOS chcp command, but this will not display correctly unless you switch from the default raster font to Lucida Console. Raster fonts do not support non-system-wide changing of the code page.
If your batch file is in UTF-8, try executing chcp 65001
before your batch file (65001=CP_UTF8) and change font to Lucida Console.
Upvotes: 1