03-16-2007 2:19 AM
hi
I want to transfer a fields length 4 to a file which will be used by non-unicode system.
And because of unicode ,if this field includes 2-byte characters, when i get this field , it display "中国中国"(it is 4 length in unicode system and 8 length in non-unicode), but user need get the field "中国"
Is there some convert function or setting some parameter can control or get it?
03-16-2007 2:48 AM
Hi,
While writing to file from unicode to non-unicode system.
OPEN DATASET IN <modus> MODE
TRANSFER/READ
CLOSE DATASET
Here MODE will be LEGACY TEXT/BINARY MODE
Produces an format compatible to non-Unicode systems. Text data is always
written in NON-UNICODE format. Not character-like structures are allowed.
The only difference between TEXT and BINARY is, that in case of TEXT an
EOF (END OF FILE) marker is added.
aRs