IBM Support

Special characters are not transfered correctly and appear as square characters in SQLTerm

Troubleshooting


Problem

Special characters on the source table are not copied correctly to the target table and appear as square characters when viewed through SQLTerm. For example, the character string ł Ź ś Ž Ğ Ã Œ Ç Æ Å Ã Ý ü Ą Ć is written to the target table and appears in SQLTerm as � � � Ž � à Œ Ç Æ Å Ã Ý ü � � The same problem does not occur when transferring via the bulk loader and UTF8 is specified.

Cause

The Oracle client NLS_LANG parameter in the registry does not match the NLS_DATABASE_PARAMETER values in the Oracle database.

Environment

Oracle

Resolving The Problem

If on running

select * from nls_database_parameters on the database, the following is returned

NLS_LANGUAGE = AMERICAN
NLS_TERRITORY = AMERICA
NLS_CHARACTERSET = UTF8

then NLS_LANG should be set to match i.e. AMERICAN_AMERICA.UTF8

Steps:Create a system variable called NLS_LANG and set it appropriately to match the NLS parameters in the database. The machine needs to be rebooted for the system variable to take effect.

[{"Product":{"code":"SS9RTN","label":"Cognos 8 Business Intelligence"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Data Manager","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.3","Edition":"","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Data Manager","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.3","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

1040641

Document Information

Modified date:
04 September 2019

UID

swg21343177