Forum Discussion

WesleyG's avatar
WesleyG
Occasional Contributor
9 years ago

Percent sign in variables

When I use a percent sign in a variable, the output seems to add the number 25 after it.

 

For example:

Variable name: test

Variable type: constant

Variable value: %abc

 

If I add that variable to a request, it actually inputs %25abc instead of %abc. Is there a way around this?

  • WesleyG's avatar
    WesleyG
    9 years ago

    Thanks for the info! I was able to solve the problem by using a data selector that does a URL decode. If it wasn't for this info I wouldn't have been able to solve it, so thanks again!

  • AlexeyKryuchkov's avatar
    AlexeyKryuchkov
    SmartBear Alumni (Retired)

    Hi,

     

    %25abc is URL encoded %abc. If you parameterize query string or form parameters, LoadComplete performs implicit URL encoding of the value. Does this cause any issues?

    • WesleyG's avatar
      WesleyG
      Occasional Contributor

      Thanks for the info! I was able to solve the problem by using a data selector that does a URL decode. If it wasn't for this info I wouldn't have been able to solve it, so thanks again!