Page 1 of 1

CTEXT() function and ccsid

Posted: 20 Jan 2021, 19:37
by Franck.A
Hello everyone,

I'm experiencing troubles with the CTEXT() translating funtcion, when trying to translate some french characters.

Here is an example:

image 1 : characters expected Image

image 2 : characters I can see as result Image

I assume this is related to my ccsid configurations and tried different configurations, without success.

Here is some informations about my ccsid configuration:
AXES user profile: ccsid 37
HostCCSID (defined in aXesTS.conf): ccsid 1147 (France)
IFS file containing translations : ccsid 819

A this time I'm looking at the ccsidoverride option in /AXES/configs/aXesTS.conf , but I' m not sure how to use it.

My other assumption is that the problem comes from the way I write into the Ifs file containing the translations, not sure of it.

Any help welcome :)

Thanks for reading
Franck

Re: CTEXT() function and ccsid

Posted: 22 Jan 2021, 10:35
by Fairdinkum
Hi Franck,

Did you download the lang file "Texts_Cust_fr.txt" from IBMi, edit it with UTF-8 encoding on PC, and upload/overrite it? (Down/uploading transaction should be FTP binary mode.) If not, I would recommend you to do this instead. It would be easier than editing on IBMi considerring its CCSID.
Image 127.png
Image 127.png (175.5 KiB) Viewed 5370 times
HTH!

Regards,
Hide

Re: CTEXT() function and ccsid

Posted: 04 Feb 2021, 20:01
by Franck.A
Hello Fairdinkum,

Sorry for my late reply,

You are right my problem was in the way I write data to the file: using the method you describe (editing UTF8 + Ftp) it works well with all specific characters.

Many Thanks for your Help ! :)

どうもありがとうございます
明けましておめでとうございます

Franck