Question mark in the middle of a url variable?

前端 未结 3 457
梦如初夏
梦如初夏 2020-11-30 07:23

If I have a variable to pass through a url and it has a question mark in it, do I just need to escape the question mark? If not how can I make sure it passes through like it

3条回答
  •  醉话见心
    2020-11-30 07:39

    A question mark URL encodes as %3F. But you should use a proper encoder for the whole thing rather than manually encoding a character.

提交回复
热议问题