Skip to content

Commit 97aade3

Browse files
committed
Added example Non-Ascii characters, 你 is 3 bytes and 😊 is 4 bytes
1 parent 7fdfeb3 commit 97aade3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

textile/features.textile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ h4. Message
14531453
** @(TM6a)@ The size is the sum of the sizes of the @name@, @data@, @clientId@, and @extras@ properties
14541454
** @(TM6b)@ The size of an @Object@ or @Array@ @data@ property is its string length after being JSON-stringified
14551455
** @(TM6c)@ The size of a @binary@ @data@ property is its size in bytes (of the actual binary, not the base64 representation, regardless of whether the binary protocol is in use).
1456-
** @(TM6f)@ The size of a @string@ @data@ property is its UTF-8 encoded length in bytes (because of Non-ASCII characters)
1456+
** @(TM6f)@ The size of a @string@ @data@ property is its UTF-8 encoded length in bytes (because of Non-ASCII characters, i.e. 你 is 3 bytes, 😊 is 4 bytes)
14571457
** @(TM6g)@ The size of a @string@ @name@ property is its length
14581458
** @(TM6h)@ The size of a @string@ @clientId@ property is its length
14591459
** @(TM6d)@ The size of the @extras@ property is the string length of its JSON representation
@@ -1630,7 +1630,7 @@ h4. ObjectData
16301630
** @(OD3b)@ If set, the size of a @boolean@ property is 1
16311631
** @(OD3c)@ If set, the size of a @bytes@ property is its size in bytes (of the actual binary, not the base64 representation, regardless of whether the binary protocol is in use)
16321632
** @(OD3d)@ If set, the size of a @number@ property is 8
1633-
** @(OD3e)@ If set, the size of a @string@ property is its UTF-8 encoded length in bytes (because of Non-ASCII characters)
1633+
** @(OD3e)@ If set, the size of a @string@ property is its UTF-8 encoded length in bytes (because of Non-ASCII characters, i.e. 你 is 3 bytes, 😊 is 4 bytes)
16341634
** @(OD3f)@ The size of a @null@ or omitted property is zero
16351635

16361636
h4. Annotation

0 commit comments

Comments
 (0)