The TEXT_ENCODE function encodes a string using the specified character set and encoding method, and returns the encoded string.
Applicability
This content applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support it.
Syntax
UTL_ENCODE.TEXT_ENCODE (
buf IN VARCHAR2 CHARACTER SET ANY_CS,
encode_charset IN VARCHAR2 DEFAULT NULL,
encoding IN PLS_INTEGER DEFAULT NULL)
RETURN VARCHAR2;
Parameters
Parameter |
Explanation |
|---|---|
| buf | The string to be encoded. |
| encode_charset | The character set used for encoding. Default value:NULL, which indicates to use the default character set of the database. |
| encoding | Encoding method. Valid values:1(Base64) or2(Quoted-printable). The default value isNULL, which indicates that Quoted-printable encoding is used. |
Return value
Return Value |
Description |
|---|---|
| VARCHAR2 | The encoded string. |