I try since few hours to understand why this happend, I explain myself :
I send an ajax request to my api with an FormData, every fields are good at this moment.
When he was send to my API some field (like $_POST["Description"]) looks different..
My JavaScript:
    document.getElementById("sendAddQuestion").onclick = function () { 
        if (document.getElementById("inputIntitule").value!="" && document.getElementById("inputDescription").value!="" && $("#tagsInputList").val()!="") {
            var lsttags = "";
            var str = $("#tagsInputList").val();
            var res = str.split(",");
            res.forEach(function(element) {
                lsttags= lsttags + "["+element+"]";
            });
            var form = new FormData();
            form.append("intitule",  "\"" + document.getElementById("inputIntitule").value + "\"" );
            form.append("description",  "\"" +document.getElementById("inputDescription").value+ "\"");
            form.append("id_utilisateur",  "2");
            form.append("tags", "\"" +lsttags+ "\"");
            var settings = {
               "async": true,
               "crossDomain": true,
               "url": "http://localhost/FAQ/api.php?action=post_question",
               "method": "POST",
               "headers": {
                 "cache-control": "no-cache",
                 "Postman-Token": "093d95af-25f5-4c51-bfcd-9f74577ad200"
               },
               "processData": false,
               "contentType": false,
               "mimeType": "multipart/form-data",
               "data": form
            }
            $.ajax(settings).done(function (response) {
                document.getElementById("inputIntitule").value="";
                document.getElementById("inputDescription").value="";
                $("#tagsInputList").tagsinput('removeAll');
                $("#myModalAddQuestion").modal("hide")
                location.reload();
                });
        } else {
            alert("Veuillez remplir tout les champs!");
        }
    };
My php API:
//je passe en paramètre mon objet PDO précédemment créé afin d'exécuter ma requête
function edit_question($pdo) { 
    $sql = "UPDATE `question` SET `intitule`='".$_POST["intitule"]."',`description`='".$_POST["description"]."' ,`tags`='".$_POST["tags"]."' WHERE `id`=".$_POST["id"];
    //création de la requête Sql pour aller chercher tous les articles
    $exe = $pdo->query($sql); 
    return $_POST["intitule"];
}
In my document.getElementById("inputIntitule").value i have Pourquoi votre site indique-t-il plusieurs disponibilités ?
but in $_POST["intitule"] i have Pourquoi votre site indique-t-il plusieurs disponibilit\u00c3\u00a9s ?
can you tel me why?
 
    