Skip to main content
Solved

Special Character Encoding Issues with Swedish Characters in ODBC Oracle Integration

  • December 16, 2024
  • 2 replies
  • 70 views

oscarcleve
Contributor
Forum|alt.badge.img+2

Hello,

I'm facing an issue with how TimeXtender handles special Swedish characters (å, ä, ö) when querying data from an Oracle database through the ODBC data source. 

I have a view that contains a column with the data type (VARCHAR2) in the Oracle DB. When loading the data to TimeXtender the special characters appear as question marks (å), a (ä), and o (ö).

 

 

However, when I create a Query Table and use CAST(CF$_PLAN AS VARCHAR2(1000)) on the same column the special characters are retrieved correctly to TimXtender. 

 

 

I have queried DUMP from the database to check that the column’s special characters are stored with proper UTF-8 encoded values, and they are.

I have also checked the NLS settings for the Oracle database, the TX application server and the ODBC connection.

Is there a way for these special characters to be retrieved correctly to TimeXtender without having to use CAST in Query Tables?

I use TimeXtender Data Integration 6822.1 and TimeXtender Ingest Service 6823.1. The ODBC Driver used is Oracle in instantclient_23_6 64-bit.

Best answer by rory.smith

Hi,

 

perhaps this https://stackoverflow.com/questions/53780855/how-to-get-special-characters-using-an-odbc-source-to-an-oracle-database-using-c gives a solution that works.

2 replies

rory.smith
TimeXtender Xpert
Forum|alt.badge.img+8
  • TimeXtender Xpert
  • 736 replies
  • Answer
  • December 16, 2024

oscarcleve
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • 23 replies
  • December 16, 2024

Thank you ​@rory.smith, it seems like the solution in the link you provided did the trick. I think the problem was that I had set the NLP_LANG environment variable on the user lever rather than at the system level.