Skip to content
Reference > Methods

urlEncode(url,encoding)

Definition

String urlEncode(String url, String encoding)

Description

Encodes URL with the specified encoding scheme and returns the resulting string.

Parameter Definition

Name Type Description
url String URL to encode
encoding String The encoding scheme. Supported encodings are US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16. See Java's standard charset for detail on each.