How can I get a %22 in relevance that has not been converted to a " ? I have tried “%2522” in the fixlet debugger version 9.5 and version 10.04 and it returns %2522.
trn
September 29, 2021, 7:23am
2
Prior discussions:
I am trying to build one statement for API call, where I need %22 as %22 but its getting replaced with " quotes
concatenation "Text %22," of (it & "%22") of lines of file "C:\Temp\Text.txt"
How I can handle that so that it should be printed as %22 only.
Gist appears to be that this is how it is in the debugger, but there are techniques to deploy elsewhere.
Starting 9.5 the Fixlet Debugger always hex encodes the %. I suspect the underlying reason has something to do with BigFix Query.
Client will report the literal % when running the relevance
Why do you need to see % in the debugger? Is it for a BigFix Query? If so, please check out this prior thread:
Because of the decoding happening in multiple steps, you need to percent encode the percent to get around this.
session relevance
"%22"
rest query
https://brollytest:52311/api/query?relevance=(%22%252522%22)
on the first decode pass,
the outer %22 turns into "
the outer %25 turns into %
Then on the second decode pass you effectively have "%2522" which converts to a "%22" and finally to a """