JSON encoding error:

JSON encoding error:

TeeWeeTeeWee Posts: 6Questions: 3Answers: 0

Hi,
I tried the trial version and everything worked great. Then I bought a license and installed the licensed version. Now I get a json error message without the database being touched or changed:
"DataTables warning: table id = example - JSON encoding error: Malformed UTF-8 characters, possibly incorrectly encoded"

Any idea what to do?

Thanks for your help
Thomas

Answers

  • allanallan Posts: 61,452Questions: 1Answers: 10,055 Site admin

    Hi Thomas,

    When you installed the trial version did you replace any files other than the dataTables.editor[.min].js files?

    What is the character set that your database is using, and what database type is it?

    If MySQL, could you try adding:

    $db->sql("SET names 'utf8'");
    

    just before the Editor::inst(...) and see if that helps? Although if it worked during the trial, I can't think why it would be required for the licensed version - there is no difference in the server-side files between the two!

    Regards,
    Allan

  • sleepking82sleepking82 Posts: 1Questions: 0Answers: 0

    @allan thanks a lot!

Sign In or Register to comment.