Hello,
I have set up an ODBC link to a DB2 database on my Linux machine. And configured HS to allow me to query my test table on the DB2 database with a database link. So far, so good.
However, I have the test table values with umlauts (äüö). These are not displayed correctly.
The DB2 database runs on UTF-8 (Codepage 1208) the Oracle database also (NLS_CHARACTERSET=AL32UTF8)
But I had to enter HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1 in the HS configuration, otherwise I ran into the problem that the ODBC driver can't connect (Error Ora-28500 and Sqlstate I or Displays a Square Bracket - [ - Issuing Selects From a Unicode Oracle RDBMS With Dg4odbc To Non-Oracle Databases Using the UnixODBC Driver Manager)
I can also translate the columns manually in a select:
select name,value,convert(value,'WE8ISO8859P1','AL32UTF8') converted_value from testtab@db2
but I'd like to leave that up to the system.
Does anyone have any ideas on what I need to set specifically?
---------------------------------
Hallo,
ich habe auf meiner Linux-Maschine einen ODBC-Link zu einer DB2-Datenbank eingerichtet. Und HS dahingehend konfiguriert, dass ich mit einem Datenbanl-Link meine Testtabelle auf der DB2-Datenbank abfragen kann. Soweit, so gut.
Allerdings habe ich der Testtabelle Werte mit Umlauten (äüö). Diese werden nicht richtig angezeigt.
Die DB2-Datenbank läuft auf UTF-8 (Codepage 1208) die Oracle-Datenbank auch (NLS_CHARACTERSET=AL32UTF8)
Ich musste aber in der HS-Konfiguration HS_LANGUAGE=AMERICAN_AMERICA.WE8ISO8859P1 eintragen, da ich sonst in das Problem gelaufen bin, dass der ODBC-Treiber sich nicht verbinden kann (Error Ora-28500 and Sqlstate I or Displays a Square Bracket - [ - Issuing Selects From a Unicode Oracle RDBMS With Dg4odbc To Non-Oracle Databases Using the UnixODBC Driver Manager)
Ich kann die Spalten auch im Select übersetzten lassen:
select name,wert,convert(wert,'WE8ISO8859P1','AL32UTF8') converted_wert from testtab@db2
aber das würde ich gerne dem System überlassen.
Hat jemand eine Idee, was ich konkret einstellen muss?