![]() in /usr/local/apache2/htdocs/odbc/error/error.php on line 4 In this case. Any idea how to display UTF-8 string in DBGrid correctly. Consider an Informix PHP application that shows the following error message. I hope that there should be means in Lazarus to not produce exception on reading UTF-8 string from DB, even in case of poor ODBC driver settings (as WinSQL do).Ģ. Likely DB is in English locale while containing some UTF-8 strings.ġ. Though the string was not displayed correctly (table.png, will attach in next message).Ĭhanging Database Locale in ODBC driver to anything different from en_US.819 (that is English CP) causes informix error "locale mismatch". Playing around, I have set Client Locale=en_US.UTF8 in ODBC driver and this have cleared an exception. ![]() The same data can be displayed with WinSQL (see tables.png, bottom). If the DB field contain string in UTF-8 format (supposedly), then my application produce series of errors (see err1-3.png) and skip the row in DBGrid display (see tables.png, top). ![]() I connect to IBM Informix DB via ODBC driver that have following default settings (see ODBC.PNG): My project is an exact copy of SQLdb_Tutorial1, described here:, attached Test.7z. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |