Quote:
Originally Posted by Imperial Fritz
nice improvement, but doesn't work for cyrillic encoding 
|
If you're referring to my version, have a look at line 108:
Code:
print '{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}}{\f0 \fs22';
The character encoding is ansicpg1252. Try changing that to the correct version for cyrillic. Sorry, I can't check it right now but just reply if you need more help.
Aylwin
edit:
Perhaps you can try this:
Code:
print '{\rtf1\ansi\ansicpg1251\uc1 \deff0\deflang1026\deflangfe1026{\fonttbl{\f0\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}}{\f0 \fs22';
1251 is for Windows 3.1 (Cyrillic) and default language 1026 is for Bulgarian