Example: Hexadecimal Representation of Japanese Characters - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

Assume that the system was enabled with Japanese language support during system initialization (sysinit).

   CREATE TABLE tab1 
               (clatin   CHAR(3)  CHARACTER SET LATIN
               ,cunicode CHAR(3)  CHARACTER SET UNICODE
               ,csjis    CHAR(3)  CHARACTER SET KANJISJIS
               ,cgraphic CHAR(3)  CHARACTER SET GRAPHIC
                  
   INSERT INTO tab1('abc','abc','abc',_GRAPHIC 'ABC
','abc');

The bold uppercase LATIN characters in the example represent full width LATIN characters.

CHAR2HEXINT returns the following results for the character strings inserted into tab1.

Function Result
CHAR2HEXINT(clatin) 616263
CHAR2HEXINT(cunicode) 006100620063'
CHAR2HEXINT(csjis) 616263
CHAR2HEXINT(cgraphic) FF41FF42FF43