Szukałem pomocy w google ale tam pisało że wystarczy dodać nagłówek
header("Content-Type: text/html; charset=iso-8859-2");
w odpowiednim kodowaniu, niestety w moim przypadku to nie pomaga
function sendChat(text){ var dataString = 'function=send&message='+text; $.ajax({ type: "POST", url: "functions/process.php", data: dataString, success: function(html){ $("#error").html(html); updateChat(); }, }); } $(function() { // watch textarea for release of key press $('#sendie').keyup(function(e) { if (e.keyCode == 13) { var text = $(this).val(); var maxLength = $(this).attr("maxlength"); var length = text.length; // send if (length <= maxLength + 1) { sendChat(text); $(this).val(""); } else { $(this).val(text.substring(0, maxLength)); } } }); });
Plik php tylko wprowadza dane do bazy