0

I tried to send "abc%yun" value in the request parameter but got an error as : "message": "The request is not valid. Please check your parameters. (Invalid encoded sequence "%yun")".

So can we send "%" in the request parameter or not?

Bapu
  • 59
  • 1
  • 10

2 Answers2

0

The % character is special in the URL encoding scheme, and as such needs itself to be encoded to be included in a URL parameter.

The % character is represented by %25 in this scheme. Your example would then be "abc%25yun".

Here is one of many websites that allow you to encode values interactively. And an article on Wikipedia.

ptomli
  • 11,730
  • 4
  • 40
  • 68
0

The % used for encoding the URL. For example if you passing any request Param value with space then it will encoded with %20

URL - http://localhost/home?Param=sample one 

It will encoded as below. The space replaced with %20.

URL - http://localhost/home?Param=sample%20one 

While doing the encoding and decoding you have to use same standard format like UTF-8

S. Anushan
  • 728
  • 1
  • 6
  • 12