Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

Problem when putting Arabic data in FireFox Cookies

  • 1 odpowiedź
  • 3 osoby mają ten problem
  • 1 wyświetlenie
  • Ostatnia odpowiedź od 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

Wszystkie odpowiedzi (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.