
Problem when putting Arabic data in FireFox Cookies
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
Wszystkie odpowiedzi (1)
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.