This function determines whether the provided value is of type str and contains valid UTF-8 characters.
This function does not generate a change.
is_utf8(value)
Argument | Type | Description |
---|---|---|
value | any (required) | The value to be tested. |
Returns true
if the given value is of type raw
and contains valid utf8, else false
.
This code shows some return values for is_utf8():
[
is_utf8( 'ԉ' ),
is_utf8( 'pi' ),
];
Return value in JSON format
[
true,
true
]