Hi guys. I'm new on this forum, so please excuse me if I'm posting this in the wrong place.
However, my problem is that I am using the Ajax functionality to run a PHP script in the background, to save some stuff to my database.
It manages to run the script and save it fine, but when I write special characters, I get strange output.
example: I write "æ, ø, å", and the output is "
æ, ø, å"
I know there is nothing wrong with the settings in my database or in my php script. When I do the exact same thing, but without using $.ajax, it works as intended.
And it is really important that I can write these characters, since they are commonly used in my common language (Norwegian). (This site is targeting Norwegians)
[code]
$('#button_save').click(function() {
$.ajax({
type: 'POST',
data: "profile_text=" + $("#profile_edit").val(),
url: 'php/save_profile_text.php',
success: function(result) {
$("#text_field").html(result);
}
});
});
[/code]
Please let me know if you need more source code to look at.