Why is “®” being rendered as “®” without the bounding semicolon

前端 未结 8 444
孤街浪徒
孤街浪徒 2020-11-30 06:14

I\'ve been running into a problem that was revealed through our Google adwords-driven marketing campaign. One of the standard parameters used is \"region\". When a user se

8条回答
  •  伪装坚强ぢ
    2020-11-30 07:06

    Here is a simple solution and it may not work in all instances.

    So from this:

    http://ravercats.com/meow?status=Online®ion=Atlantis

    To This:

    http://ravercats.com/meow?region=Atlantis&status=Online

    Because the ® as we know triggers the special character ®

    Caveat: If you have no control over the order of your URL query string parameters then you'll have to change your variable name to something else.

提交回复
热议问题