Message Sets: CWF data conversion

You can convert an MRM message to a different code page or encoding, or both.

To do this, set the CodedCharSetId and Encoding fields in the Properties folder and the message tree to the target value.

The data conversion that is performed depends on the simple type of each element.

  • Binary schema types: base64Binary, hexBinary objects are not converted.
  • Boolean schema types: Boolean objects are not converted.
  • DateTime schema types: date, dateTime, gDay, gMonth, gMonthDay, gYear, gYearMonth, time objects are handled as binary, string, packed decimal, timeSeconds, or timeMilliseconds.

    If a dateTime element is defined as binary, it is not converted.

    If it is defined as string, it is converted as a string element (described later in this section).

    If it is defined as a packed decimal value, it is converted as Decimal (described later in this section).

    If it is defined as a timeSeconds or timeMilliseconds value, it is converted as Integer (described later in this section).

  • Decimal schema types: decimal, integer, negativeInteger, nonNegativeInteger, nonPositiveInteger, positiveInteger, unsignedLong objects with Physical Type set to External Decimal are converted to the target CodedCharSetId. Elements with other Physical Type settings are converted to the target Encoding.
  • Float schema types: double, float objects with Physical Type set to External Decimal are converted to the target CodedCharSetId. Elements with other Physical Type settings are converted to the target Encoding.
  • Integer schema types: byte, int, long, short, unsignedByte, unsignedInt, unsignedShort objects with Physical Type set to External Decimal are converted to the target CodedCharSetId. Elements with other Physical Type settings are converted to the target Encoding.
  • String schema types: anyURI, ENTITIES, ENTITY, ID, IDREF, IDREFS, language, Name, NCName, NMTOKEN, NMTOKENS, normalizedString, NOTATION, QName, string, token objects are converted to the target CodedCharSetId (the length of an object that has Physical Type of Length Encoded String 2 is converted to the target Encoding).