Tibems.SetMessageEncoding


Method

Declaration

static void SetMessageEncoding( 
    Message message 
    string encodingName ); 

Purpose

Set the character encoding for an individual message.

Remarks

This encoding for an individual message overrides the global encoding. When neither a global nor an individual message 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.

Parameter
Description
message
Set the encoding for this message.
encodingName
Set this encoding.
For a list of standard encoding names, see www.iana.org.

See Also

BytesMessage—Read

BytesMessage—Write

Tibems.GetEncoding

Tibems.SetEncoding

Tibems.GetMessageEncoding


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com