Regarding GBK,GB2312 encoding conversion on AIX 5.1 - Aix

This is a discussion on Regarding GBK,GB2312 encoding conversion on AIX 5.1 - Aix ; Hi, On Aix 5.1 I am unable to convert documents encoded in GBK,and GB2312. Can anybody tell me how to fix this. On Hp-Ux systems there is a config.iconv file which lists out all the aliases, so for GB2312 i ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Regarding GBK,GB2312 encoding conversion on AIX 5.1

  1. Regarding GBK,GB2312 encoding conversion on AIX 5.1

    Hi,

    On Aix 5.1 I am unable to convert documents encoded in GBK,and GB2312.
    Can anybody tell me how to fix this. On Hp-Ux systems there is a
    config.iconv file which lists out all the aliases, so for GB2312 i can
    use hp15CN, however I have been unable to find a similar file on Aix.
    Also both the encodings are working fine on AIX 4.3, and AIX 5.3. I
    cannot figure out what the problem might be.

    Any help would be greatly appreciated

  2. Re: Regarding GBK,GB2312 encoding conversion on AIX 5.1

    On Jul 11, 6:06 am, MichaelCorleone <4shw1ns1...@gmail.com> wrote:
    > Hi,
    >
    > On Aix 5.1 I am unable to convert documents encoded in GBK,and GB2312.
    > Can anybody tell me how to fix this. On Hp-Ux systems there is a
    > config.iconv file which lists out all the aliases, so for GB2312 i can
    > use hp15CN, however I have been unable to find a similar file on Aix.
    > Also both the encodings are working fine on AIX 4.3, and AIX 5.3. I
    > cannot figure out what the problem might be.
    >
    > Any help would be greatly appreciated


    $ which_fileset GB2312
    /usr/lib/nls/loc/uconvTable/GB2312 -> /usr/lib/nls/loc/uconvTable/IBM-
    eucCN \ bos.iconv.ucs.ZH_CN 5.3.0.0

    $ which_fileset GBK
    /usr/lib/nls/loc/uconvTable/GBK bos.iconv.ucs.Zh_CN 5.3.0.0
    /usr/lib/nls/charmap/GBK bos.loc.adt.locale 5.3.0.0
    /usr/lpp/X11/lib/X11/locale/GBK X11.base.lib 5.3.0.0
    /usr/lpp/X11/lib/X11/nls/GBK X11.base.lib 5.3.0.0

    So check if they are installed on your AIX 5.1 system
    $ lslpp -l bos.iconv\*

    hth
    Hajo

  3. Re: Regarding GBK,GB2312 encoding conversion on AIX 5.1

    On Jul 11, 3:38*pm, Hajo Ehlers wrote:
    > On Jul 11, 6:06 am, MichaelCorleone <4shw1ns1...@gmail.com> wrote:
    >
    > > Hi,

    >
    > > On Aix 5.1 I am unable to convert documents encoded in GBK,and GB2312.
    > > Can anybody tell me how to fix this. On Hp-Ux systems there is a
    > > config.iconv file which lists out all the aliases, so for GB2312 i can
    > > use hp15CN, however I have been unable to find a similar file on Aix.
    > > Also both the encodings are working fine on AIX 4.3, and AIX 5.3. I
    > > cannot figure out what the problem might be.

    >
    > > Any help would be greatly appreciated

    >
    > $ which_fileset GB2312
    > /usr/lib/nls/loc/uconvTable/GB2312 -> /usr/lib/nls/loc/uconvTable/IBM-
    > eucCN *\ bos.iconv.ucs.ZH_CN 5.3.0.0
    >
    > $ which_fileset GBK
    > /usr/lib/nls/loc/uconvTable/GBK * * * * bos.iconv.ucs.Zh_CN 5.3.0..0
    > /usr/lib/nls/charmap/GBK * * * * * * * *bos.loc.adt.locale 5.3.0.0
    > /usr/lpp/X11/lib/X11/locale/GBK * * * * X11.base.lib 5.3.0.0
    > /usr/lpp/X11/lib/X11/nls/GBK * * * * * *X11.base.lib 5.3.0.0
    >
    > So check if they are installed on your AIX 5.1 system
    > $ lslpp -l *bos.iconv\*
    >
    > hth
    > Hajo


    Hi,
    Firstly, thanks a lot

    On doing the above on my system
    % which_fileset GBK
    /usr/lib/nls/loc/uconvTable/GBK bos.iconv.ucs.Zh_CN 5.1.0.0
    /usr/lib/nls/charmap/GBK bos.loc.adt.locale 5.1.0.0
    /usr/lib/nls/csmap/GBK bos.loc.iso.Zh_CN 5.1.0.0
    /usr/lpp/X11/lib/X11/locale/GBK X11.base.lib 5.1.0.0
    /usr/lpp/X11/lib/X11/nls/GBK X11.base.lib 5.1.0.0

    % lslpp -l bos.iconv\*
    Fileset Level State Description

    ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
    bos.iconv.com 5.1.0.54 APPLIED Common Language to
    Language
    Converters
    bos.iconv.ucs.com 5.1.0.52 APPLIED Unicode Base
    Converters for
    AIX Code Sets/Fonts

    I think it means GBK converter is not installed, how do I go about
    installing it?

    I did try anyway
    % iconv -fZh_CN -tUTF8 gbk.txt
    iconv: 0791-004 cannot open converter

    thinking Zh_CN might be an alias for GBK.

    Pardon me for my lack of Knowledge in this area.






  4. Re: Regarding GBK,GB2312 encoding conversion on AIX 5.1

    On Jul 11, 9:52 am, MichaelCorleone <4shw1ns1...@gmail.com> wrote:
    > On Jul 11, 3:38 pm, Hajo Ehlers wrote:
    >
    >
    >
    > > On Jul 11, 6:06 am, MichaelCorleone <4shw1ns1...@gmail.com> wrote:

    >
    > > > Hi,

    >
    > > > On Aix 5.1 I am unable to convert documents encoded in GBK,and GB2312.
    > > > Can anybody tell me how to fix this. On Hp-Ux systems there is a
    > > > config.iconv file which lists out all the aliases, so for GB2312 i can
    > > > use hp15CN, however I have been unable to find a similar file on Aix.
    > > > Also both the encodings are working fine on AIX 4.3, and AIX 5.3. I
    > > > cannot figure out what the problem might be.

    >
    > > > Any help would be greatly appreciated

    >
    > > $ which_fileset GB2312
    > > /usr/lib/nls/loc/uconvTable/GB2312 -> /usr/lib/nls/loc/uconvTable/IBM-
    > > eucCN \ bos.iconv.ucs.ZH_CN 5.3.0.0

    >
    > > $ which_fileset GBK
    > > /usr/lib/nls/loc/uconvTable/GBK bos.iconv.ucs.Zh_CN 5.3.0.0
    > > /usr/lib/nls/charmap/GBK bos.loc.adt.locale 5.3.0.0
    > > /usr/lpp/X11/lib/X11/locale/GBK X11.base.lib 5.3.0.0
    > > /usr/lpp/X11/lib/X11/nls/GBK X11.base.lib 5.3.0.0

    >
    > > So check if they are installed on your AIX 5.1 system
    > > $ lslpp -l bos.iconv\*

    >
    > > hth
    > > Hajo

    >
    > Hi,
    > Firstly, thanks a lot
    >
    > On doing the above on my system
    > % which_fileset GBK
    > /usr/lib/nls/loc/uconvTable/GBK bos.iconv.ucs.Zh_CN 5.1.0.0
    > /usr/lib/nls/charmap/GBK bos.loc.adt.locale 5.1.0.0
    > /usr/lib/nls/csmap/GBK bos.loc.iso.Zh_CN 5.1.0.0
    > /usr/lpp/X11/lib/X11/locale/GBK X11.base.lib 5.1.0.0
    > /usr/lpp/X11/lib/X11/nls/GBK X11.base.lib 5.1.0.0
    >
    > % lslpp -l bos.iconv\*
    > Fileset Level State Description
    >
    > ----------------------------------------------------------------------------
    > Path: /usr/lib/objrepos
    > bos.iconv.com 5.1.0.54 APPLIED Common Language to
    > Language
    > Converters
    > bos.iconv.ucs.com 5.1.0.52 APPLIED Unicode Base
    > Converters for
    > AIX Code Sets/Fonts
    >
    > I think it means GBK converter is not installed, how do I go about
    > installing it?


    Get the media .
    If its on CD:
    $ installp -d /dev/cd0 -agXY bos.iconv.ucs.Zh_CN

    if its on a filesystem
    $ cd WhereTheSoftwareIs
    $ installd -d . -agXY bos.iconv.ucs.Zh_CN

    or use:
    $ smitty install

    hth
    Hajo

+ Reply to Thread