tibemsMsg_GetEncoding

Function

Purpose

Get the character encoding header from a message.

C Declaration

tibems_status tibemsMsg_GetEncoding(
    const tibemsMsg message,
    const char** value );

COBOL Call

CALL "tibemsMsg_GetEncoding"
     USING BY VALUE message,
           BY REFERENCE value,
           RETURNING tibems-status
END-CALL.
Note: message and value have usage pointer.

Parameters

Parameter Description
message Get the character encoding from this message.
value Store the character encoding.

Remarks

This call extends the JMS specification.

This encoding applies to all strings in message bodies (names and values), and properties (names and values). It does not apply to header names nor values. The function tibemsBytesMsg_ReadUTF is exempt from message encoding settings.