company logo

String :: codingType - Property string coding type

This property holds the string encoding type for the data stored within the string. The default encoding type may differ for different implementation environments. In a C++ environment default coding type is Local8BitString; in a .NET environment default is UTF16String.

Notes:

In OSI, the string value (name) from the enumerator will be returned rather than the code value.

Return value:  String encoding type ( odaba::StringCodingTypes  )

In case of unknown text encoding type undefinedCoding is used.

Implementation overview

Implementation details

  1. Get string encoding type
    odaba::StringCodingTypes String  :: codingType (  )

    The function returns the current encoding type for the string.

  2. to list
  3. Set encoding type
    odaba::StringCodingTypes String  :: codingType ( odaba::StringCodingTypes eStringCodingType )

    The function sets the encoding type for the string to the value passed in eStringEncodingType. When the encoding type differs from the current string encoding type and the string contains data, string data will be recoded.

    • eStringCodingType - String encoding type

      In case of unknown text encoding type undefinedCoding is used.

  4. to list