dongyu1614
dongyu1614
2018-04-21 06:29

Mysql替换了像+这样的特殊字符

Hope you are doing well, Recently I am trying to store html code generated by summernote WYSIWYG editor to the MySQL database which most of the times may contain images within it, the problem is that MySQL replaces some characters like '+' with white-space, I have tried addslashes(), mysql_real_escape_string() functions of PHP but it didn't work, the data type I used in MySQL table is TEXT. Anybody have a solution or idea, please help. Thanks.

JavaScript Function to upload data:

function saveData(){
        var dt = $("#summernote").summernote('code');
        $.ajax({
            url: "save_data.php",
            type: 'POST',
            processData: false,
            data: 'editor_content=' + dt,
            success: function (data, textStatus, jqXHR) {
                $("#loaded").html("Success");
            }
        });
    }

JavaScript Function to download data:

function loadData(id){
        $.ajax({
            url: "get_data.php",
            type: 'post',
            data: 'id=' + id,
            processData: false,
            success: function (data, textStatus, jqXHR) {
                $("#loaded").html(data);
            }
        });
    }

PHP to Save data to database:

<?php

    $data = $_POST['editor_content'];
    $pdo = new PDO('mysql:host=localhost;dbname=richtext', 'root', '');
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    $sth = $pdo->prepare("INSERT INTO text (data) VALUES (?)");
    $sth->execute(array($data));
    echo $data;
?/
**PH

P to retrieve data from database:**

<?php
    $id = $_POST['id'];
    $pdo = new PDO('mysql:host=localhost;dbname=richtext', 'root', '');
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    $sth = $pdo->prepare("SELECT data FROM text WHERE id = ?");
    $sth->execute(array($id));
    print_r($sth->fetch());


?>

Real Code:

<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAARHUlEQVR42u1deZAcVRnPJJtks7tsABMCIYKFJVLEkiMccbPZ7n6ve2Z3szvTx0wiBQUBSZSIVV6xSkorBQjikT+wQA5RUMKhhMNCKBWJCggpEFAOFZUyApHiJuFYTCD6fd2zm97ZnunX53w9zFS92mSz+frt+71+x/f9vt83bVr70/5E+aiqnIM23dVybXutY8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c/879GJqvAKTF9M0zM08NIsTVr/OKMFYz7C+a4Dhm5NO1hfh6equE28AUAaHPjwFN0yXWwcSsKL6P2bkP51YyMXxTwZ7vulp0Rr44x2yvvCwc9CEWbayH+cCF45DCR9G77QIfJn8irgyqaSE5xmvWW7ZTBf7MPfdZdttgD1NjBbQfyC/qrxRaI/r7x2hN1J85ytZkRO9+2R8SeaCBhpqt1ROx82x4ReyIPnFHb2vZax57IbJvuarm2vezb+z+KoJ8ZptPx1AAAAABJRU5ErkJg" data-filename="_Male_Profile_Round_Circle_Users-128.png" style="width: 128px;"></p>

Stored in DB:

<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAARHUlEQVR42u1deZAcVRnPJJtks7tsABMCIYKFJVLEkiMccbPZ7n6ve2Z3szvTx0wiBQUBSZSIVV6xSkorBQjikT wQA5RUMKhhMNCKBWJCggpEFAOFZUyApHiJuFYTCD6fd2zm97ZnunX53w9zFS92mSz frt 71 x/f9vt83bVr70/5E aiqnIM23dVybXutY8/vYTNqW9te69jzm2Ud0Ga6WkfY2da2R8ueyMPwAbNcbWbEzsdqb2CofICsmqqimmfB12/JXL9RVq0tCjMfk5i1XWLGDkU1xuDre9iqf96B/4Y/gz8Lf75O4eYFklpeo2gGGxiyFlD9feO0J/Kw2dA6XW12xM5HsrdkydqZimL1AVjrFdW6FUB/Dtr/JjcrQptkC23/HL6/nvPyJyRJ6sj6 AV9GD5gjqt1Rux8KHuMjS4AwNc6gFs764AVN/hT7OGqIXPrFlglzuwfLM/PyviFeRieJrugdbsa/n16WvYGB0/uhUFfI3Hrbhj4d4OCFTf4ta3ap7tkZn6qr6 4D7Xxiwo PqDH1bojdl7YnqRax8nc/BEM8JtxgRU3 FOb8QZ8vUrJV5Y0e/ziAr/X1Xoidr5HwF4OltaSrBr3JA9WsvYkbt4Hh9CVstw/N8Xxi23P73I9cPwXiNL5cTtz69mTmKlLqvHnZoCVqD1mPMa00qqkxy8oxn4Hj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yDbFqJz56hqZW7WwGescAgAfy5sbS LaPg2COnGDX40TmCMg5urMoteE6NxWRdDpu x1MEHl/hxsMJdtpdq1tit68PkiRv86JzAuAfX4RjaRNM9AkyePcDYhbQsY121ljAJ8AuFVftCn86C /o9ouxd Plr4Aq8IMXJGR8nMInBtSnndfMOPJUvxrB6GGoYeC2fSYOPz7RXMGbdAW/7WBDePufG8SmvTLFzAhPrPJwNRibr8QvLw/4F6dYoiIB1hLwYPWH7h7bwTo45C0AT z5M1r8F75/xkDsOkiL4yXACE 58DoJKo9X0qpC5dcbbGH20pV6Bww9tncJLp8AePSJrej/nxRMh//8oRSl9BJ1VmESCopJI0JR5eR3Y Jb9f20bYCtsijYcdkUSNRMCP1lOoMfDemu4aFE7D4eq0eUy0692OH2ZEWfYif4Mv8ykNMYvcU6ga5npqZlx0 O0J8tmrx0vh9Kxwat0pqPGhYJMuAWJ5jykOH7JcQKrxrtdrSuGA0tDe gpxOsTLNc/879GJqvAKTF9M0zM08NIsTVr/OKMFYz7C a4Dhm5NO1hfh6equE28AUAaHPjwFN0yXWwcSsKL6P2bkP51YyMXxTwZ7vulp0Rr44x2yvvCwc9CEWbayH cCF45DCR9G77QIfJn8irgyqaSE5xmvWW7ZTBf7MPfdZdttgD1NjBbQfyC/qrxRaI/r7x2hN1J85ytZkRO9 2R8SeaCBhpqt1ROx82x4ReyIPnFHb2vZax57IbJvuarm2vezb z KoJ8ZptPx1AAAAABJRU5ErkJg" data-filename="_Male_Profile_Round_Circle_Users-128.png" style="width: 128px;"><br></p>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • drot98385 drot98385 3年前

    Your problem is in your Javascript code, not on the server side.

    data: 'editor_content=' + dt,
    

    You're sending form data as a string, but not encoding it properly. The easiest fix will be to send it as an object, so that jQuery will encode it for you:

    data: { editor_content: dt },
    
    点赞 评论 复制链接分享

相关推荐