ODataEncoding
using Skipcheck.Tm1.Client.OData;Percent-encoding for OData URLs, applied exactly once to each piece (OData Part 2 §2.1).
TM1 object names contain almost anything: Clients}, Year 2026,
O'Neil, a/b, 50%, {x}, &=+#. Two rules, one per
place a value can go, keep them intact:
PathValue: inside a path segment, such as a key literal. Only unreserved characters and'are left as is;/becomes%2F.QueryValue: a query option's value. The OData punctuation used inside values ($ ( ) , ; ' : @ / ! *) is kept readable;& = + #and everything else is encoded, so a value can't split or end the query. A space is%20, never+.
Members
PathValue static | For a path segment. |
QueryValue static | For a query option's value, keeping OData's own punctuation. |
PathValue
staticstring PathValue(string text)For a path segment: only unreserved characters and ' stay.
QueryValue
staticstring QueryValue(string text)For a query option's value, keeping OData's own punctuation.