0

I've got a little issue with AJAX request. I request some data from database using jQuery $.post, but all the special characters are lost. I did some testing and I've figured out, that it stores the data incorrectly in $_SESSION, but it only occurs with AJAX request when the file contains only PHP (in html files I have a <meta charset="utf-8"> markup and it seems to work for PHP too). Of course I've tried adding header('content-type: text/html; charset: utf-8'); to the code, but it doesn't work. What could it be?

Fiodor
  • 796
  • 2
  • 7
  • 18

0 Answers0