Re: CCSID - RPG issues

Barbara Morris <[email protected]> Thu, 26 Feb 2026 13:06:59 -0500
Newsgroups gmane.comp.lang.as400.rpg
Organization IBM
Message-ID <[email protected]>
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: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact [email protected] for any subscription related questions.