[TIBCO.EMS .NET client library 7.0 documentation]

Return string encoding name set for this message

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.dll)

Syntax

public static string GetMessageEncoding(
	Message message
)
Public Shared Function GetMessageEncoding ( _
	message As Message _
) As String
public:
static String^ GetMessageEncoding(
	Message^ message
)

Parameters

message
Type: TIBCO.EMS..::.Message
Get the encoding for this message.

Return Value

The string encoding name for this message, or null is no encoding is set.

Remarks

This encoding for an individual message overrides the global encoding. When neither a global nor an individual encoding has been set, then EMS encodes the strings of an outbound message using the default UTF-8 encoding.

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 methods BytesMessage.ReadUTF and BytesMessage.WriteUTF are exempt from global and individual encoding settings.

See Also