I need to set the font on the XP command prompt on a few machines so that it would correctly display Hebrew file names. The default font displays a lot of gibberish, so I'm pretty sure changing it will do the trick. Can anyone point me in the right direction?
There are two steps to doing this. Firstly you need to set a font that supports hebrew charectors as an availible font for the command prompt. To do so, open regedit and browse to this registry key:
In here you should see an entry of:
0 Lucida Console
You need to create a new string value, called 00, with a value of the name of the font you want to use. If you already have a 00 entry in their, use 000 and so on.
Once done, restart the machine. You should now be able to click on the upper left corner and your font list should now include the font you wish to use.
The following article describes how to add fonts to the command prompt dialog, though I haven't tested it. The article also links to a Microsoft Knowledge base article on the requirements for command window fonts. http://smallvoid.com/article/winnt-cmd-add-font.html
Apart from installing a font with Hebrew glyphs, I think you may also need to change the codepage, like by invoking
chcp 65001 (65001 being CP_UTF8).
Note that when running
chcp 65001 within a batch file, all subsequent lines in that batch file are somehow silently ignored. One can use the following instead:
chcp 65001 && your_command_here ...
(And like you may already understand: for Unicode support, one should not use "raster fonts".)
EDIT: in Super User's How to change the Windows console font?, user Leonardo provided a link to Why are console windows limited to Lucida Console and raster fonts? This article explains:
The console rendering model assumes each character fits neatly inside its fixed-sized cell. When a new character is written to a cell, the old cell is overprinted with the new character, but if the old character has overhang or underhang, those extra pixels are left behind since they "spilled over" the required cell and infected neighbor cells. Similarly, if a neighboring character "spilled over", those "spillover pixels" would get erased.
In other words: only a few fonts will actually render nicely in console windows.
While many of than answers will change the font, it might also be helpfult to be able to type in those filenames should you decide to do something with them. For windows XP you need to install the MUI pack. MUI packs are generally availalable to enterprise agreement customers