Code page of the file in the IFS is 1026
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Tom Huff
Sent: Thursday, May 31, 2012 2:20 PM
To: 'RPG programming on the IBM i / System i'
Subject: RE: Attempting to write to IFS andmissing turkish characters
Check the code page of the file on the IFS
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of John Allen
Sent: Thursday, May 31, 2012 11:20 AM
To: RPG400-L@xxxxxxxxxxxx
Subject: Attempting to write to IFS andmissing turkish characters
I am attempting to write/create a txt file directly into the IFS the file contains Turkish characters
I have a copy of Scotts great and very helpful IFS eBook (Thank you very much Scott)
This file contains turkish characters such as ÜŞ
It appears using code 1026 these characters are Hex 7F and Hex 7C
For my test I did the following:
1) Modified Scotts program CH5ASCII that creates and writes some simple text to a text file
2) Changed the code that creates a new file to specify code page 1026 rather than 819
3) Output some text including a Hex 7F7C
Runs fine, but when the file is opened from the 400 (EDTF) I see a “@ I was expecting to see ÜŞ
When I open it with Notepad I see jibberish Ä…™@Ö¤¢‰•k%%É@“–¥…@£ˆ…@¦
Obviously there is something I am missing
Anybody know what I am doing wrong?
Thanks
John
_____
I am using the Free version of SPAMfighter <
http://www.spamfighter.com/len> .
SPAMfighter has removed 3429 of my spam emails to date.
Do you have a slow PC? <
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen> Try free scan!
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 3444 of my spam emails to date.
Get the free SPAMfighter here:
http://www.spamfighter.com/len
The Professional version does not have this message
As an Amazon Associate we earn from qualifying purchases.