Skip to main content
3 of 3
Fixed spelling errors
John Conde
  • 86.4k
  • 27
  • 147
  • 241

Javascript and PHP how should I en/decode my data

I would like to know in what encryption should I encode my data and why. First of all, I use GET method because it is search engine inside website. Second, I use RTL language (hebrew). And third which basically is why I ask this question - Firefox and Safari (as I understand it) encode and decode urls automatically. So if I encoded the url, in Firefox I will see it decoded which is good. But if I copy-paste the url to the address bar and than enter the site, Firefox encodes the uncoded url to UTF (I think).

What en/decode should I use? And how can I overcome the Firefox auto en/decode?

Ron
  • 177
  • 2
  • 9