URL Encoding
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
Some common characters used by PI System features, such as AF resource names, may produce errors when included
in a request URI. These characters must be percent-encoded according to RFC 3986,
which defines the rules for URIs. Characters that must be percent-encoded are referred to as "reserved characters". For
example, if you are trying to include an AF Element name like Element#&StartTime=01-01-17 in your request
URI, you would need to percent-encode it like Element%23%26StartTime%3D01-01-17.
Table with common url encodings
| Symbol | Escape Character |
|---|---|
| Space | %20 |
| ! | %21 |
| " | %22 |
| # | %23 |
| $ | %24 |
| % | %25 |
| & | %26 |
| ' | %27 |
| ( | %28 |
| ) | %29 |
| * | %2A |
| + | %2B |
| , | %2C |
| - | %2D |
| . | %2E |
| / | %2F |
| : | %3A |
| ; | %3B |
| < | %3C |
| = | %3D |
| > | %3E |
| ? | %3F |
| @ | %40 |