Sorry, I just am not getting this,
What I am trying to get to is - what do I need to change to get these turkey characters into an ASCII file (and display using Notepad)
I need to write the turkey characters out to a ASCII file from an RPG program, so I started with Scotts sample program CH5ASCII).
I have a file in the IFS that was generated from some other software, it has code page 1252 assigned to it (using WRKLNK to view the attributes) and it displays these characters fine
What is it that I need to change?
Are you saying I cannot use Scotts program example CH5ASCII to write these characters into the IFS file as an ASCII file then open the file with notepad and see them?
Or do I need to change the CCSID values (1026 and/or 1026) to something else?
John
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Wednesday, June 13, 2012 5:11 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Attempting to write to IFS andmissing turkish characters
On 13 Jun 2012 11:56, John Allen wrote:
<<SNIP>> there are a few characters not converting correctly Couple
of examples:
Hex 5A Latin Capital letter G with Breve above Ğ displays as a Ð
Hex 5B Latin Capital letter I with dot above İ displays as a Ý
Most of the characters are fine
but want to make sure I have done it correctly.
I want to create an ASCII file with Turkey characters in it from code
page 1026 I want the file to have code page 1252 assigned to it in the
IFS (I
think)
<<SNIP>>
CP1252 does not have the character identifiers LG240000 and LI300000 whereas CP1254 and CP1026 both do. The effect of [what I infer is] x'D1' and x'9F' are presumably chosen for /round tripping/ the data; i.e. those target code points as conversions-to can be safely changed to the inverse on the reverse translation [conversion-from], because neither LD640000 nor LY180000 exist in CP1026.
Regards, Chuck
--
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.
SPAMfighter has removed 5444 of my spam emails to date.
Get the free SPAMfighter here:
http://www.spamfighter.com/len
Do you have a slow PC? Try Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
As an Amazon Associate we earn from qualifying purchases.