If you have an WebSphere MQ Everyplace application, and wish to convey
character-related data from WebSphere MQ Everyplace to WebSphere MQ, your
choice of method is determined largely by the data you wish to convey:
-
If your data contains characters in the variant ranges of the ASCII
character codepages, (the character for a codepoint changes as you
change between the various ASCII codepages) then you can use either
putUnicode (which is never subject to translation between
codepages), or putArrayOfByte (in which case you have to handle the
translation between the sender's codepage and the receiver's
codepage).
- Note:
- DO NOT USE putAscii() as the characters in the variant
parts of the ASCII codepages are subject to translation.
- If your data contains only characters in the invariant ranges of the
ASCII character codepages, then you can use putUnicode (which
is never subject to translation between codepages) or putAscii
(which is never subject to translation between codepages, as all your data
lies within the invariant range of the ASCII codepages).
© IBM Corporation 2000, 2003. All Rights Reserved