URL-encoded values
- Last Updated: August 31, 2022
- 1 minute read
- DataDirect Connectors
- JDBC
- Autonomous REST Connector 6.0
- Documentation
When specifying URL endpoints to be mapped to your REST model in either the Autonomous REST Composer or Model file, you must use valid URL-encoded values. URL-encoding is the process of converting unsafe or unsupported characters in your string to a set of safe characters in the ASCII format. Encoding your string is required to make your URL spec-compliant and, therefore, readable and safe for transmission across the Internet.
URL-encoding specification defines a set of reserved characters that act as
delimiters in endpoints that have special meaning. When encoding your string, you must replace
these characters with the encoded equivalent if they are not intended to be used as a
delimiter. For example, if your URL contained the reserved characters space and
!, you would need to replace each instance of the space character with
%20 and the !character with the value
%21.
Non-encoded value:
http://example.com/new customers!/
Encoded value:
http://example.com/new%20customers%21/
The following table documents the reserved characters and their encoded equivalent. For more information on URL encoding, refer to https://en.wikipedia.org/wiki/Percent-encoding.
| Reserved character | Encoded characters |
|---|---|
| space | %20 |
! |
%21 |
"
|
%22 |
# |
%23 |
$ |
%24 |
% |
%25 |
& |
%26 |
' |
%27 |
( |
%28 |
) |
%29 |
* |
%2A |
+ |
%2B |
, |
%2C |
/ |
%2F |
: |
%2D |
; |
%3A |
= |
%3B |
? |
%3D |
@ |
%40 |
[ |
%5B |
] |
%5D |