Updated on 2026-11-06 GMT+08:00

url_decode1

The url_decode1 function is used to decode a string from application/x-www-form-urlencoded MIME format to regular characters.

Syntax

url_decode1(string [, string ]) 

Parameters

Parameter

Mandatory

Type

Description

input

Yes

STRING

The input string.

encoding

No

STRING

Specifies the encoding format. Supports standard encoding formats such as GBK or UTF-8. If not specified, the default is UTF-8.

Return Values

Returns a value of type STRING.

A STRING type UTF-8 encoded string.

Example Code

Returns Example for URL_DECODE:// dsf (fasfs).

select url_decode1('Example+for+url_decode+%3A%2F%2F+dsf%28fasfs%29', 'GBK');