Locales and conversion tables confusion - Some characters don't get translated | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Locales and conversion tables confusion - Some characters don't get translated

AIX


Tags
conversion table, encoding, locale

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-10-2011
Adamm Adamm is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 5 December 2011, 9:01 AM EST
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Locales and conversion tables confusion - Some characters don't get translated

Hello,

my program running on AIX receives a message (from MQ) which is in CCSID 870 (LATIN-2 EBCDIC). It needs to convert it to CCSID 912 (ISO-8859-2). For this conversion, it uses the Websphere MQ functionality, but which, according to the manual, uses AIX's system conversion tables. (Btw - it only works like this on AIX. On Linux or Windows, Websphere MQ uses its own coversion logic, ignoring system conversion tables - and it works there.)

The problem is, that some characters like ,č,ť, get translated to chr(26).

My checklist was:
1. The LANG environment variable is set to sk_SK
2. Conversion tables seem to be there
(root):/usr/lib/nls/loc/iconvTable# ls -l
...
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-1250_IBM-5346
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-1282_IBM-5346
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-1284_IBM-5346
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-1285_IBM-5346
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-5346_IBM-1250
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-5346_IBM-1282
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-5346_IBM-1284
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-5346_IBM-1285
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-5346_IBM-852
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-5346_IBM-870
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-5346_ISO8859-2
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-852_IBM-5346
-r--r--r-- 1 bin bin 288 Aug 12 2010 IBM-870_IBM-5346
-r--r--r-- 1 bin bin 288 Aug 12 2010 ISO8859-2_IBM-5346

Can you please help me find out what am I forgeting? Thanx.
Sponsored Links
    #2  
Old 03-12-2011
zxmaus's Avatar
zxmaus zxmaus is offline Forum Advisor  
Event Manager
 
Join Date: May 2008
Last Activity: 7 September 2014, 5:24 AM EDT
Location: in a putty session :)
Posts: 811
Thanks: 19
Thanked 70 Times in 62 Posts
Hi,
you probably still need the english UTF-8 locales installed. The English UTF-8 locale is required for all languages and the localized UTF-8 locale is required for each non-English language that will be used if you want to use national language characters.

What is locale -a showing on your server?

Regards
zxmaus
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
csh to bash conversion confusion u5j84 Shell Programming and Scripting 1 10-15-2010 09:03 AM
Converting tables of row data into columns of tables justthisguy Shell Programming and Scripting 7 07-16-2007 05:42 PM
Locales in AIX voorkey AIX 0 06-08-2006 02:08 PM
Locales - Solaris 8 finster UNIX for Dummies Questions & Answers 2 07-26-2003 01:24 PM



All times are GMT -4. The time now is 09:28 AM.