Skip to content

Commit

Permalink
Update possible values for the character-set
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Sep 4, 2024
1 parent a5359c0 commit 14c79b6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 13 deletions.
43 changes: 31 additions & 12 deletions ballerina/constants.bal
Original file line number Diff line number Diff line change
Expand Up @@ -125,23 +125,42 @@ public const int ENC_FLOAT_IEEE_REVERSED = 512;
# Floating-point numbers are represented using the standard zSeries (System/390) floating-point format.
public const int ENC_FLOAT_S390 = 768;

# Character data in the message is in the queue manager's character set.
public const int CCSI_Q_MGR = 0;
# Coded Character Set Identifiers - Appl.
public const int CCSI_APPL = -3;

# ASCII codeset
public const int CCSI_ASCII = 850;

# ISO standard ASCII codeset
public const int CCSI_ASCII_ISO = 819;

# Coded Character Set Identifiers - As Published.
public const int CCSI_AS_PUBLISHED = -4;

# ASCII character set
public const int CHARSET_ASCII = 850;
# The CodedCharSetId of the data in the String field is defined by the CodedCharSetId field in the header structure
# that precedes the MQCFH structure, or by the CodedCharSetId field in the MQMD if the MQCFH is at the start of the message.
public const int CCSI_DEFAULT = 0;

# ISO standard ASCII character set
public const int CHARSET_ASCII_ISO = 819;
# The American EBCDIC codeset
public const int CCSI_EBCDIC = 37;

# Coded Character Set Identifiers - Embedded.
public const int CCSI_EMBEDDED = -1;

# Character data in the message is in the same character set as this structure.
public const int CCSI_INHERIT = -2;

# Character data in the message is in the queue manager's character set.
public const int CCSI_Q_MGR = 0;

# The American EBCDIC character set
public const int CHARSET_EBCDIC = 37;
# Coded Character Set Identifiers - Undefined.
public const int CCSI_UNDEFINED = 0;

# Unicode character set
public const int CHARSET_UNICODE = 1200;
# Unicode codeset
public const int CCSI_UNICODE = 1200;

# UTF-8 character set
public const int CHARSET_UTF8 = 1208;
# UTF-8 codeset
public const int CCSI_UTF8 = 1208;

const string DEFAULT_BLANK_VALUE = " ";

Expand Down
3 changes: 2 additions & 1 deletion ballerina/types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public type OPEN_TOPIC_OPTION OPEN_AS_SUBSCRIPTION|OPEN_AS_PUBLICATION;
public type Header MQRFH2|MQRFH|MQCIH|MQIIH;

# The coded character set used in application message data.
public type MESSAGE_CHARSET CCSI_Q_MGR|CHARSET_ASCII|CHARSET_ASCII_ISO|CHARSET_EBCDIC|CHARSET_UNICODE|CHARSET_UTF8;
public type MESSAGE_CHARSET CCSI_APPL|CCSI_ASCII|CCSI_ASCII_ISO|CCSI_AS_PUBLISHED|CCSI_DEFAULT|
CCSI_EBCDIC|CCSI_EMBEDDED|CCSI_INHERIT|CCSI_Q_MGR|CCSI_UNDEFINED|CCSI_UNICODE|CCSI_UTF8;

# The SSL Cipher Suite to be used for secure communication with the IBM MQ server.
public type SslCipherSuite SSL_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA|SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
Expand Down

0 comments on commit 14c79b6

Please sign in to comment.