You need to match the text encoding with the font. Typically you use a Unicode text with Unicode font.
The characters that appears on the image look like Unicode 'meta' characters, rather that a simpler 8-bit text format using russian meta characters (8-bit codes > 127).
You can use a command such as "iconv" on many machines to convert from practically any text format to some other text format (like unicode). I myself have used it to convert chinese 'gb' text to unicode for printing purposes.
A newer version of "iconv" is known as "recode"
In perl you can use something like the "Encode" library module.
Code: Select all
use Encode;
$text = 'Текст кириллица';
$text = encode("utf8", decode("cp1251", $text));
print "$text\n";
( I have no idea where I got this last from originally, I just saved it for future use).