Remember to set CCSID in Apache

Post Reply
Posts: 875
Joined: Thu Apr 09, 2009 5:45 pm

Remember to set CCSID in Apache

Post by aseiden » Tue Jan 03, 2012 12:05 am

As with any Zend Server installation on IBM i, the toolkit works better when a value for CCSID is set in the Apache configuration.

Documentation here:

Specifically, the configuration file: /www/zendsvr/conf/httpd.conf
should include CCSID settings such as:
DefaultFsCCSID 37

The actual CCSID will depend on your language and location.

If you do not set the CCSID in this way, the toolkit could return unreadable characters, such as in the following error:

Code: Select all

i5Error: num=312 cat=9 msg="UNEXPECTED" desc="IPC ftok fail (€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€)"
Such results can be easily resolved by setting the CCSID as given above.

User avatar
Zend Global Support
Posts: 56
Joined: Mon Dec 29, 2008 5:28 pm

Re: Remember to set CCSID in Apache

Post by rodflohr » Tue Mar 04, 2014 7:11 pm

Instead of editing httpd.conf, you can use the menu option to set CCSID and Language options for FastCGI and Apache.

From the 5250 Command line:

For Zend Server version 5:


For Zend Server version 6:


Use option "8. Set Zend Server Language/CCSID environment".

Under the heading "FastCGI Language and CCSID settings", please set the CCSID to 1208. Leave the Language ID set to 'C'.

Under the heading "Apache web server settings", please set the value for DefaultFsCCSID and CGIJobCCSID to the recommended value for your language (see note below).

Press Enter to update, and then restart Apache for this change to take effect.

Note: To determine the default CCSID for your language, you can try this trick. From a 5250 command line:


On the "Display Job" display, use option "2. Display job definition attributes". On the "Display Job Definition Attributes" display, page up a few times until you come to the Language entries:

Language identifier . . . . . . . . . . . . . . . : ENU
Country or region identifier . . . . . . . . . . : US
Coded character set identifier . . . . . . . . . : 65535
Default coded character set identifier . . . . . : 37

Use the value set for "Default coded character set identifier". In this example the CCSID to use is '37'.

Post Reply