Skip to content

String Encoding

NetLinx has no native string type, but since it is a common type the encoding/decoding of the string data will be logically handled so the XML remains concise.

CHAR arrays will be encoded/decoded as string type, printable ASCII characters appear as ASCII, and non-printable characters appear as escaped decimal or hex code, &#; or &#x;.

Example:

1
2
3
4
5
6
<data>My Name is Jimmy Buffet&#x0D;</data>


or:

<data>My Name is Jimmy Buffet &#13;</data>

Additionally, some characters have a more readable syntax.

These characters are invalid in XML so the following characters can be also be encoded in this format:

Character Escape Version
\< <
> >
& &
'
" "

See Also