Teradata SQL Assistant - Does not display intl characters

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
arun_im4u
Premium Member
Premium Member
Posts: 104
Joined: Mon Nov 08, 2004 8:42 am

Teradata SQL Assistant - Does not display intl characters

Post by arun_im4u »

Hello,

I have loaded a file with international characters from around the world in UTF-8 format using DataStage 8.0 parallel job into a Teradata Unicode table. When I export the table from BTEQ and open the file in Excel(Using UTF-8), I am able to display all the international characters.

If I run a query from my the Teradata Client tool SQL Assitant, then all the international characters appear garbled up. If I export it from the SQL assitant tool into a UTF-8 delimited file and open it up in excel, it still appears messed up. It says everywhere that SQL assitant and odbc drivers are all UTF-8 compliant.

Any direction to resolve this will be great. It works if I export from command line, but the characters get messed up if I use the client tool.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

This is not a question for the Parallel Extender forum, it would be better suited under general forum.

I would put money down that it is actually the character set of your windows instance that is messing up your view of the data. I have seen people forget that PUTTY will display characters according to it's character mapping. Your Windows (or VDI session) needs to have that character set I believe.

You say you executed a BTEQ then opened the file up in Excel... Did you FTP the file off of Unix and onto Windows to view it? The FTP could have manipulated the endian nature of your data.

Are integers also messed up or just strings perhaps?


The Teradata SQL assistant is a windows tool. make sure that it is configured to use proper character set, don't assume it defaults to utf8.

Take a peek at the data using a hex editor and look for a knows string pattern. Dummy up an entry with "Hello World" string and look for that combination of hex characters.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Actually, it is something better suited for a Teradata support forum since it is specific to their client tool. However, I would go along with Paul and your default Windows characterset being the issue.
-craig

"You can never have too many knives" -- Logan Nine Fingers
arun_im4u
Premium Member
Premium Member
Posts: 104
Joined: Mon Nov 08, 2004 8:42 am

Post by arun_im4u »

Thanks. The issue was I did not set the client character set to UTF8 during the load.
fridge
Premium Member
Premium Member
Posts: 136
Joined: Sat Jan 10, 2004 8:51 am

Post by fridge »

Glad you sorted your issue out - but - one word of warning with sql assistant.

There is an option somewhere (preferences I guess) - that enables the use of ODBC extentions and is enabled by default.

This can cause different results when running stuff via SQL Ass vs BTEQ.

We fell over this when trying some code in DS that we had tested via SQL Ass - believe it was a DDL change and it applied the DDL incorrectly via SQL assistant.

Cant remember the details I am afraid - but one to watch out for.
Post Reply