2.1.3 String

The String structure describes a set of characters encoded in UTF-8, as specified in [RFC2279].


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length (variable)

...

Bytes (variable)

...

Length (variable): This is the length in bytes of the string when encoded in UTF-8, as specified in [RFC2279], and MUST be encoded using MultiByteInt31. For more information on MultiByteInt31 see section 2.1.2.

Bytes (variable): These are the bytes that constitute the string and MUST be encoded in UTF-8, as specified in [RFC2279].

For example, the string "abc" is encoded as 4 bytes.

 0x03 0x61 0x62 0x63

This specification places no restrictions on the set of characters that can be encoded here.