method of static class JsNgram

Description

Escape URI string.

Example
JsNgram.encodeURI('a/b c.txt');
// returns a/b%20c.txt
      
Usage

encodeURI(uri);

Argument uri is a URI string unescaped, maybe contains utf-8 characters as raw file name.

It just calls buit-in encodeURI function. If you want another choice, you can override this method with your favorite one.