## validate()


Validate that a string can be encoded.


Usage


``` python
validate(data)
```


Call [encode()](encode.md#gdtest_sphinx_func_role.encode) first.


## Parameters


`data: str`  
The string to validate.


## Returns


`bool`  
True if the string is valid for encoding.
