Chinese Char /UTF-8
Posted: Thu Oct 20, 2016 7:59 am
Hi,
I'm trying to read Chinese file and it fails when CHAR and for VARCHAR it works.
The existing other regions have CHAR and we are trying to minimize the changes in the layout.
The layout is Char Fixed width file Unicode.
FIRSTNAME:Char(30)-Unicode
MiddleName:Char(1)-Unicode
LastName:Char(30)-Unicode
Existing data:
COLNIE MPROLL
chinese data:
李娜 MPROLL
when viewed in Hex editor -chinese char took around 3bytes.
Hence i tried firstname:6bytes(data)+24padchars but no luck.
External ustring too short. Imported only 0 external characters into a ustring of fixed length 1.
##W IIS-DSEE-TFIG-00201 09:53:53(001) <SQ,0> Field "MiddleName" has import error and no default value; data: <empty>, at offset: 787
Is it only varchar is supported for multi-byte?
Thanks in advance!
I'm trying to read Chinese file and it fails when CHAR and for VARCHAR it works.
The existing other regions have CHAR and we are trying to minimize the changes in the layout.
The layout is Char Fixed width file Unicode.
FIRSTNAME:Char(30)-Unicode
MiddleName:Char(1)-Unicode
LastName:Char(30)-Unicode
Existing data:
COLNIE MPROLL
chinese data:
李娜 MPROLL
when viewed in Hex editor -chinese char took around 3bytes.
Hence i tried firstname:6bytes(data)+24padchars but no luck.
External ustring too short. Imported only 0 external characters into a ustring of fixed length 1.
##W IIS-DSEE-TFIG-00201 09:53:53(001) <SQ,0> Field "MiddleName" has import error and no default value; data: <empty>, at offset: 787
Is it only varchar is supported for multi-byte?
Thanks in advance!