Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  AIX Toolbox for Open Source Software - Can libiconv convert IBM-1047 to UTF-8 ?

    Posted Tue May 31, 2022 08:37 AM
    I have an application that requires to call libiconv.so.2 library (version from 1.15 or above) for character set conversion.
    Searched in AIX Toolbox for Open Source Software, I downloaded libiconv-1.16 and try to run the application but failed. I try to call it by command line directly:
    root@axi71(/)# which iconv
    /opt/freeware/bin/iconv
    root@axi71(/)# iconv -f IBM-1047 -t UTF-8 ebcdic.txt > ebcdic.converted
    iconv: conversion from IBM-1047 unsupported
    iconv: try 'iconv -l' to get the list of supported encodings
    root@axi71(/)# iconv -l | grep IBM-1047
    root@axi71(/)#

    From the result, it seems that libiconv-1.16 cannot convert IBM-1047 to UTF-8. I further searched gnu.org and found libiconv-1.17 is now available with IBM-1047 encoding.

    https://savannah.gnu.org/forum/forum.php?forum_id=10175


    Does anyone encountered the same problem ?
    Is there any configuration can set to make libiconv-1.16 able to convert IBM-1047 to UTF-8 ? or it really cannot do that ?
    Will libiconv-1.17 be available with the IBM-1047 encoding to be downloaded ?


    ------------------------------
    Angus Lam
    ------------------------------

    #AIXOpenSource


  • 2.  RE: AIX Toolbox for Open Source Software - Can libiconv convert IBM-1047 to UTF-8 ?

    Posted Tue May 31, 2022 09:49 AM
    Okay. As it is clearly mentioned that the support for IBM-1047 (along with many encodings) is added in libiconv 1.17 version, then 1.16 will not work for this encoding. 
    I see 1.17 is released couple of weeks back.  We will try to update libiconv to 1.17 version in Toolbox.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: AIX Toolbox for Open Source Software - Can libiconv convert IBM-1047 to UTF-8 ?

    Posted Wed June 29, 2022 02:41 AM
    Libiconv 1.17 is now available in AIX Toolbox.
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/libiconv/

    Repo is also updated so that one can use dnf to update to it.

    ------------------------------
    Ayappan P
    ------------------------------