<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problems with QSqlDatabase::setConnectOptions]]></title><description><![CDATA[<p dir="auto">Hi. Basically I've build an application that connect's whith a Firebird Database from another software. This database charset is set to "NONE". On Linux, I've connected with QIBASE driver using:</p>
<pre><code>db = QSqlDatabase::addDatabase("QIBASE");
db.setHostName("xxx.xxx.xxx.xxx");
db.setConnectOptions("ISC_DPB_LC_CTYPE=Latin1");
db.setPort(xxxx);
db.setDatabaseName("C:/SGH.GDB");
db.setUserName("SYSDBA");
db.setPassword("masterkey");
</code></pre>
<p dir="auto">But on Windows, I'm using QODBC3 so I don't need to compile Qt myself with the IBASE driver. The problem is on Windows, some characters are not displaying. On Linux was the same, but db.setConnectOptions("ISC_DPB_LC_CTYPE=Latin1") solved my problem.</p>
<p dir="auto">I'm using on Windows exactly this:</p>
<pre><code>db = QSqlDatabase::addDatabase("QODBC3");
db.setHostName("localhost");
db.setConnectOptions("ISC_DPB_LC_CTYPE=Latin1");
db.setDatabaseName("SGH");
</code></pre>
<p dir="auto">But seems that setConnectOptions has no effect and I can't see the characters there are not displayed. Anyone can help me?</p>
]]></description><link>https://forum.qt.io/topic/82447/problems-with-qsqldatabase-setconnectoptions</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 19:12:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/82447.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Aug 2017 16:27:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problems with QSqlDatabase::setConnectOptions on Wed, 16 Aug 2017 21:52:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Might be a silly question but: did you install the plugin ?</p>
]]></description><link>https://forum.qt.io/post/410790</link><guid isPermaLink="true">https://forum.qt.io/post/410790</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 16 Aug 2017 21:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to Problems with QSqlDatabase::setConnectOptions on Wed, 16 Aug 2017 17:52:40 GMT]]></title><description><![CDATA[<p dir="auto">Ok. So I discovered that the option ISC_DPB_LC_CTYPE is not available for QODBC and decided to build the QIBASE plugin. I've run qmake with the correct params and mingw32-make after. Everything compiles normal, but QT don't show the driver in the list of available drivers. There's something else that I should do?</p>
]]></description><link>https://forum.qt.io/post/410755</link><guid isPermaLink="true">https://forum.qt.io/post/410755</guid><dc:creator><![CDATA[Alurab]]></dc:creator><pubDate>Wed, 16 Aug 2017 17:52:40 GMT</pubDate></item></channel></rss>