Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Problem when putting Arabic data in FireFox Cookies

  • 1 tontu
  • 3 am na jafe-jafe bii
  • 1 view
  • i mujjee tontu mooy cor-el

more options

i've a problem when putting Arabic data in firefox cookies and reading it back, it's read with a wrong encoding .... this problem don't happen in IE & Chrome please help me, I've asked this question before but I didn't get any reply ... please help

i've a problem when putting Arabic data in firefox cookies and reading it back, it's read with a wrong encoding .... this problem don't happen in IE & Chrome please help me, I've asked this question before but I didn't get any reply ... please help

All Replies (1)

more options

You did get an advice: [/questions/924350]

How are you storing that Arabic data in a cookie?

Are you escaping that data or are you using encodeURIComponent() or something else?

I think that the proper method is using encodeURIComponent() to encode and decodeURICompenent() to decode that data.