000111235
The problem in reading the non-Latin text with DB2 driver
Information |
Title | The problem in reading the non-Latin text with DB2 driver |
---|
URL Name | The-problem-in-reading-the-non-Latin-text-with-DB2-driver |
---|
Article Number | 000111235 |
---|
Environment | Product: Connect64 for ODBC DB2 Wire Protocol driver
Version: 7.16.291 OS: Windows10 Database: DB2 iSeries 10.50.0 Application: All supported applications |
---|
Question/Problem Description |
|
---|
Steps to Reproduce | In the environment with Client code page 437 and DB2 database code page 1208
Steps to reproduce this issue:- -------------------------------------------- - Open sample ODBC Test application (UNICODE) from below URL https://www.progress.com/support/evaluation/download-resources/download-tools - create table test1("COUNTRY_RU" VARCHAR(90)) - insert into test values ('по русски') - select * from test In the following two scenarios we can confirm that driver working correctly: Scenario1:- ------------------ Open sample ODBC Test application (UNICODE) Step1 - SELECT HEX(COUNTRY_RU) FROM db2admin.test1; Step2 - Step1 will retrieve a hex value as - D0BFD0BE20D180D183D181D181D0BAD0B8 Step3 - Open below URL i.e. HEX to UTF8 converter https://onlinehextools.com/convert-hex-to-utf8 Step4 - Place the HEX value and you will get UTF8 value as "по русски" this proves Driver working correctly. Scenario2:- ------------------- Step1 - Open client machine where we are running sample ODBCTest Application Step2 - Follow below steps to change the client codepage to 866(Russia) Step3 - Start menu- > ControlPanel -> region settings -> Administrative -> Change System Locale -> Russia -> Step4 - Restart client machine Step5 - Open ODBCTest application and check the output with below query -> it is returning same as inserted i.e. ('по русски') select * from db2admin.test1 |
---|
Clarifying Information |
---|
Error Message |
---|
Defect Number |
---|
Enhancement Number |
---|
Cause |
|
---|
Resolution |
|
---|
Workaround |
---|
Notes |
---|
Last Modified Date | 12/12/2018 11:24 AM |
---|
Files |
Disclaimer |
The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information. Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages. |