encodeURI

Summary

Encodes a full URI.

Usage

public string encodeURI(string uri)

Returns

The escaped URI.

Parameters

uri

A full URI to encode.

Description

Encodes a full URI.

encodeURI vs encodeURIComponent

To understand the differences between encodeURI and encodeURIComponent and to learn the best practices in JS++ when dealing with these methods, please refer to the language guide.

Examples

Basic Usage
1
2
3
4
import System;
import System.Encoding.URI;
 
Console.log(encodeURI("http://example.com/no spaces")); // "http://example.com/no%20spaces"

Share

HTML | BBCode | Direct Link