Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15608

QIBASE driver incorrect work with FireBird database, who contain text strings in Win-1251 codepage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 4.6.3, 4.7.0
    • None
    • Win7 Prof. Fireberd 2.0. Qt SDK 2010.05

    Description

      I work with FireBird database, who contain text strings in Win-1251 codepage. I use QT4.6(4.7) and QIBASE driver. QSqlQuery returned square instead cyrillic simbols.
      The string

      db.setConnectOptions("ISC_DPB_LC_CTYPE=WIN-1251");

      don't work.
      ...
      According to QIBASE Unicode Support and Text Encoding [doc.qt.nokia.com] it falls back to Unicode when the encoding you request is not available (not availabel in QTextCodec, according to a quick look to the source code of the qsql_ibase plugin).

      CP1251 and Windows-1251 are valid in QTextCodec but may not be correct for IBase; on the other hand WIN1251 and WIN-1251 may be correct for IBase but are not valid for QTextCodec. So this seems to be a loose-loose situation.
      ...
      see that topic
      http://developer.qt.nokia.com/forums/viewthread/1910/

      Attachments

        1. qtbug.zip
          1.23 MB
          Dmytro
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            oldukr Dmytro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes