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.
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