Example: Character Cannot Be Represented in a Character Set - Advanced SQL Engine - Teradata Database

International Character Set Support

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
xnf1627504141606.ditamap
dita:ditavalPath
xnf1627504141606.ditaval
dita:id
B035-1125
lifecycle
previous
Product Category
Teradata Vantageā„¢

Suppose that a column declared as CHAR(2) CHARACTER SET UNICODE stores CAPITAL LETTER A WITH MACRON ( ).

The Teradata Database representation is as follows.

01 00 00 20
A  

Selection from a KanjiEUC session successfully returns encoded in code set 3 (cs3) of EUC. The KanjiEUC representation is as follows.

8F AA A7 20
A  

Assume that an ASCII session does a SELECT on the column containing the . The export width for the session is set to the expected defaults and the conversion options are set to ignore conversion.

Because the character cannot be represented in ASCII, it is converted to the ASCII error character 0x1A. The representation of the results in ASCII is as follows.

1A 20
not valid  

Selection from KanjiSJIS returns an error character.

1A 20 20 20
not valid      

Selection from KanjiEBCDIC also returns an error character.

3F 40 40 40 40 40
not valid