Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to transfer file by byte length in unicode system

Former Member
0 Kudos

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?

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

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