DBCS File Transfer

0 pts.
Tags:
AS/400
I have a flat file in PC which contains Korean characters apart from the normal english characters. When I uploaded the file to AS400, my korean characters gets shifted by 2 bytes. I am not sure how to rectify this shifting of DBCS characters.
ASKED: August 17, 2005  7:43 AM
UPDATED: August 18, 2005  7:37 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

I think your problem might be IBM’s double-byte character system (DBCS). IBM represents each Korean character as two bytes. In order to “shift” into reading the characters two at a time, IBM looks for the “shift-in” character which is (I think) hex 0E. It then interprets each following byte in couplets until it detects the “shift-out” character. I think the shift out is hex 0F. A visual example laid out in hex:
0e F1F2 F3F4 F5F6 0f
Shift-in, two byte characters hex F1F2, F3F4, and F5F6, and then the shift-out. Your two byte discrepancy may be due to the shift-in/shift-out characters. It’s been about ten years since I had to deal with this in Korea and I’ve forgotten a lot about it.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following