rtf garbled

  • Nobody/Anonymous

    in CPwSafeDlg::ShowEntryDetails(PW_ENTRY *p)

        str = _T("{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\fswiss MS Sans Serif;}{\\f1\\froman\\fcharset2 Symbol;}{\\f2\\fswiss ");
        str += m_strListFontFace;
        str += _T(";}{\\f3\\fswiss Arial;}}");
        str += _T("{\\colortbl\\red0\\green0\\blue0;}");
        str += _T("\\deflang1031\\pard\\plain\\f2\\cf0 ");
        strTemp.Format("%d", m_nListFontSize * 2);
        str += _T("\\fs"); str += strTemp;

    It seems these code didn't considering about i18n, Chinese string will gets garbled (may also Japanese, etc).
    I don't know rtf very well, so I can't sumbit a patch, sorry.

    • Dominik Reichl

      Dominik Reichl - 2004-11-07

      Do you have a Chinese or Japanese system? To my knowledge it works very fine (at least someone who had a Chinese system confirmed this to me for some previous version and I didn't change anything in that code).

      Best regards,

    • Nobody/Anonymous


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks