Author |
Message
|
Veera B |
Posted: Thu Mar 14, 2013 11:26 pm Post subject: Unsupported Encoding Exception : 1208 |
|
|
Voyager
Joined: 16 Jan 2013 Posts: 76
|
HI All,
I am getting an exception in JCN. ( java.io.UnsupportedEncodingException: Cp1208 ). This is on an AIX machine v6.1.
I understand that the encoding for unix is 273 and i am using ccsid 37, but then i dont get exception, instead i get junk data in the output.
need some suggestions ... |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Mar 15, 2013 2:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
1208 is a unicode CCSID. Are you sure you're not putting in a CCSID where it expects to find an encoding? |
|
Back to top |
|
 |
Veera B |
Posted: Sun Mar 17, 2013 8:11 pm Post subject: |
|
|
Voyager
Joined: 16 Jan 2013 Posts: 76
|
yes correct, i was using ccsid value for encoding.
Thank you mqjeff. hypertension at work makes simple things complicated  |
|
Back to top |
|
 |
Veera B |
Posted: Mon Mar 18, 2013 8:45 pm Post subject: |
|
|
Voyager
Joined: 16 Jan 2013 Posts: 76
|
Also regarding the junk data while logging on AIX machine ... tried a few things
[ENC : 273 , ccsid : 37] --> gives junk data
[ENC : 273 , ccsid : 819] --> gives correct data |
|
Back to top |
|
 |
smdavies99 |
Posted: Mon Mar 18, 2013 11:06 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
so your Queue manager default CCSID is probably 819.
This is ISO-8859-1 Western European Latin.
Please be aware that this CCSID does not handle the Euro Character.
If you need to send data containing the Euro Symbol you need to use 923 or better still 1208 in your message MQMD
As a general rule, I try to make all the queue manager I use have a CCSID = 1208.
Saves a lot of headaches in the long run.
Welcome to the sometimes murky world of CCSID's and Encodings. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Veera B |
Posted: Mon Mar 18, 2013 11:31 pm Post subject: |
|
|
Voyager
Joined: 16 Jan 2013 Posts: 76
|
smdavies99 wrote: |
so your Queue manager default CCSID is probably 819.
This is ISO-8859-1 Western European Latin.
Please be aware that this CCSID does not handle the Euro Character.
If you need to send data containing the Euro Symbol you need to use 923 or better still 1208 in your message MQMD
As a general rule, I try to make all the queue manager I use have a CCSID = 1208.
Saves a lot of headaches in the long run.
|
Unlike encoding which is machine specific, is ccsid machine independent .. for example will it not differ on win,unix, etc .. ?
is there any redbooks to understand the ccsid and encoding in detail ? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 19, 2013 4:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Veera B wrote: |
Unlike encoding which is machine specific |
Many machines share encoding strategies.
Veera B wrote: |
is ccsid machine independent .. for example will it not differ on win,unix, etc .. ? |
It is, but there are a huge number of overlapping code pages and some are more popular than others. For example, the 819 code page you're using on AIX is available on Windows but not typically used; 850 is used instead which certainly has most of the same code points but not all.
Likewise anyone who's using a Euro character in European Latin but not Unicode will have a different code page. Native French systems use another to obtain the special characters typically used which again shares the majority of code points.
Veera B wrote: |
is there any redbooks to understand the ccsid and encoding in detail ? |
There's a raft of material on the Internet. CCSID (or code page) is not a WMB issue but a general application internationalization issue; any applications sharing data across national boundaries face these issues and it's from this Unicode grew.
You'll also find a lot of discussion in here about it. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
rekarm01 |
Posted: Tue Mar 19, 2013 11:52 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
Veera B wrote: |
Unlike encoding which is machine specific, is ccsid machine independent .. for example will it not differ on win,unix, etc .. ?
is there any redbooks to understand the ccsid and encoding in detail ? |
The Encoding describes mostly non-character data (integers, decimals, floats). The WMQ InfoCenter documents it here and here, (among other places).
The CodedCharSetId describes character data. The IBM CDRA documents it here. |
|
Back to top |
|
 |
zpat |
Posted: Wed Mar 20, 2013 1:25 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Don't forget that with MQ v7 the queue manager does more data conversion in the OS for the clients apps - or not depending on the fixpack level and which way the wind is blowing
Either way - make sure these AIX filesets are installed.
bos.iconv.com, bos.iconv.en_GB, bos.iconv.ucs.com, bos.iconv.ucs.ebcdic, bos.iconv.ucs.pc, bos.rte.iconv
The en_GB can be replaced with your favourite locale if not UK. |
|
Back to top |
|
 |
Veera B |
Posted: Wed Mar 20, 2013 6:53 pm Post subject: |
|
|
Voyager
Joined: 16 Jan 2013 Posts: 76
|
Hi Everyone,
Thank you, for the knowledge and guidance. |
|
Back to top |
|
 |
|