This documentation is archived and is not being maintained.

JS5024: The URI to be encoded contains an invalid character

A string encoded as a Uniform Resource Identifier (URI) contains invalid characters. Although most characters are valid inside strings to be converted to URIs, some Unicode character sequences are invalid in this context.

To correct this error

  • Ensure the string to be encoded contains only valid Unicode sequences.

    A complete URI is comprised of a sequence of components and separators. The general form is:


    The names in angle brackets represent components, and the ":", "/", ";" and "?" are reserved characters used as separators.