Hi sources in codepage 1251
REQUEST HB_CODEPAGE_RU1251 INIT PROCEDURE ALX_INIT () LOCAL lang: = QTextCodec (): new () lang: setCodecForCStrings (lang: codecForName_1 ( "Windows-1251")) HB_SETCODEPAGE ( "RU1251") RETURN National symbols in the string: For example, QlineEdit If you do QLineEdit: SetText (string), then the string is displayed correctly. But after this QLineEdit: Text () returns a wrong string (replaced all national symbols on the "?") / * * QString text () const * / HB_FUNC (QT_QLINEEDIT_TEXT) ( hb_retc (hbqt_par_QLineEdit (1) -> text (). toLatin1 (). data ()); ) Replacing toLatin1 () on toAscii () everything is working properly _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour