count.bytes ViewHelper <vhs:count.bytes>
¶
Counts bytes (multibyte-safe) in a string.
Usage examples¶
<v:count.bytes>{myString}</v:count.bytes> (output for example `42`
{myString -> v:count.bytes()} when used inline
<v:count.bytes string="{myString}" />
{v:count.bytes(string: myString)}
Arguments¶
string¶
- DataType
string
- Required
false
- Description
String to count, if not provided as tag content
encoding¶
- DataType
string
- Default
'UTF-8'
- Required
false
- Description
Character set encoding of string, e.g. UTF-8 or ISO-8859-1