News
Abstract
C CGI (compiled with locale object type LOCALEUTF) programming example
Content
You are in: IBM i Technology Updates > Web Integration on i > IBM HTTP Server for i > Introduction > CGI programming example > C CGI (compiled with locale object type LOCALEUTF) programming example
This sample code is provided by IBM for illustrative purposes only. It has not been fully tested. It is provided as-is without any warranties of any kind, including but not limited to the implied warranties of merchantability and fitness for a particular purpose.
This program is a simple C program that demonstrates how to create a CGI program compiled using locale object type *LOCALEUTF for use with CGIConvMode BINARY. It also demonstrates the use of two APIs QzsrGetEnvCCSID and QzsrPutEnvCCSID.
As of V5R4 the IBM HTTP server for iSeries is compiled in UTF-8 (CCSID 1208). You can leverage this in your CGI programs by compiling and working with UTF-8 data.
To install the example program, do the following:
|
Was this topic helpful?
Document Information
Modified date:
26 October 2021
UID
ibm11172230