Why does the encoding's of a URL and the query string part differ?

前端 未结 3 1812
刺人心
刺人心 2020-12-14 17:37

I was researching why my query parameters have plus + signs in it instead of %20 and why they have strings like %C3%BC instead of a ü

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 18:19

    They don't necessarily have to differ, a + is a valid path character and a ü is a valid search character (per RFC 3987). You're probably seeing browsers or some other preconceived encoding scheme making assumptions that are either outdated or overly cautious.

提交回复
热议问题