jquery - When using chrome/chromium, brackets in url's hash is shown as %5Bwhatever%5D. Using firefox [whatever]. There is any way to fix it? -
i's using jquery 1.4.3 , bbq plugin handle history , hash.
when update hash string "listing=restaurants&search[province]=1&search[main_food]=2" url bar shows "listing=restaurants&search%5bprovince%5d=1&search%5bmain_food%5d=2"
ugly.
there way show nice, firefox does?
thanks
the characters [
, ]
must not appear literally in fragment of uri. here’s corresponding abnf uri (rfc 3986):
fragment = *( pchar / "/" / "?" ) pchar = unreserved / pct-encoded / sub-delims / ":" / "@" unreserved = alpha / digit / "-" / "." / "_" / "~" pct-encoded = "%" hexdig hexdig sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
any character not listed must encoded using percent-encoding. chrome’s behavior correct. guess firefox displaying characters represented %5b
, %5d
. , that’s browser.
Comments
Post a Comment