O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Converting Character Data Using ICONV

Business applications often have to work with data in different encodings. While most i5/OS-based applications work with EBCDIC data, you might need to exchange data with other systems that prefer to work with data in ASCII, Unicode, or simply a different EBCDIC CCSID. To help address this, the system provides a family of APIs often generically referred to as iconv. The iconv APIs conform to an industry standard and are documented in the Information Center in a style following that standard.

The first API, iconv_open, is used to define what type of conversion you want. The parameters for iconv_open are shown in Figure 9.4. In the industry-standard iconv_open API, the descriptors (parameters) controlling the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required