validate()
Validate that a string can be encoded.
Usage
validate(data)Call encode() first.
Parameters
data: str-
The string to validate.
Returns
bool-
True if the string is valid for encoding.
Validate that a string can be encoded.
Usage
Call encode() first.
data: strThe string to validate.
boolTrue if the string is valid for encoding.