encode
The encode function is used to encode str using the encoding method specified by charset.
Syntax
encode(string , string )
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| str | Yes | STRING | String to be encoded. Type STRING. If the input is of type BIGINT, DECIMAL, DOUBLE, or DATETIME, it is implicitly converted to STRING type before evaluation. |
| charset | Yes | STRING | The encoding format. Valid values are: UTF-8, UTF-16, UTF-16LE, UTF-16BE, ISO-8859-1, US-ASCII. |
Return Values
Returns a value of type BINARY.
If str or charset is NULL, NULL is returned.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot