Re: CCSID - RPG issues

Gad Miron <[email protected]> Sat, 28 Feb 2026 11:20:06 +0200
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <CAFj_=c0Je0aEMJ+Au=EWpp1wdSMB-ixgULVkpvOTtJkrpFiA2w@mail.gmail.com>
I guess I was not too clear

Source AND target fields as CCSID(1208)


Gad


>
> date: Thu, 26 Feb 2026 13:06:59 -0500
> from: Barbara Morris <[email protected]>
> subject: Re: CCSID - RPG issues
>
> On 2026-02-26 7:01 a.m., Gad Miron wrote:
> > ...
> > UTF8 Hebrew presents no problem since it translates , in the built-in RPG
> > conversion,
> > to CCSID(424) without issues.
> >
> > The problem lies with Spanish, French, Chinese,Russian, Greek, Arabic
> etc.
> > ...
> In your earlier message, you said that the target of the %SUBST was also
> CCSID(1208).
>
> If you are converting Spanish, French data to CCSID(424), you would risk
> losing data since CCSID(424) does not have all the accented characters
> like ? and ?.
>
> It would be good to add CCSIDCVT(*EXCP) so you get an exception if any
> CCSID conversion fails due characters in the source CCSID that are not
> in the target CCSID.
>
> --
> Barbara
>
>
>
>
-- 
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.