SetCharSet (RT Unified) - WinCC Unified

WinCC Unified Open Pipe (RT Unified)

ft:publication_title
WinCC Unified Open Pipe (RT Unified)
Product
WinCC Unified
Version
V20
Publication date
06/2025
Language
en-US
SetCharSet

Description

Sets the character encoding to one of the following specified values: {UTF-8, cp437, cp850}

The default character encoding is UTF-8.

The following character coding values must be supported as a minimum:

  • UTF-8

  • cp850

    In German Windows systems, this is the default for the SystemLocale.

  • cp437

    In US Windows systems, this is the default for the SystemLocale.

Internally, strings are treated as Unicode strings (often as UTF-16 in a CFSTR). For external communication over the pipe, the Unicode characters must be converted into a byte representation.

When a character cannot be converted for a specific character coding (e.g. the Greek character "π" in the character coding cp437), an "encoding error" is triggered.

Request

SetCharSet <Value>

For example: SetCharSet UTF-8

Response

OnSuccess:

NotifySetCharSet <Value>

For example: NotifySetCharSet UTF-8

OnError:

ErrorSetCharSet <Value> <Error text>

For example: ErrorSetCharSet UTF-9 unknown character set