Menu

Charset

Help
Anonymous
2004-05-31
2004-06-01
  • Anonymous

    Anonymous - 2004-05-31

    Hi there,
    I've tried to play with font's tag charset attribute, like <font charset=russian>something in russian</font> . Seems doesn't work ar all. Any ideas?

     
    • Vitaly Tomilov

      Vitaly Tomilov - 2004-06-01

      Using different character sets is always tricky 
      It depends on:
      1.      Whether or not your project is UNICODE
      2.      Are you displaying the text that is in the code or external?
      3.      Which development environment are you using?
      4.      etc.

      In essence, if you are trying to display Russian text in VC++, then set BodyCodePage=1251, if the text is inside the code, or TxtCodePage=1251, if the text is inside an external resource file and you load it using tag <txt>. Basically, the latter is the same as to say <txt  cp=1251>, just works globally. When I tried that I could see Russian fonts displayed perfectly on an English version of Windows 2000/XP.

       

Log in to post a comment.