UTF-8 encoding - impossible decode html table characters

UTF-8 encoding - impossible decode html table characters

dropbox1349dropbox1349 Posts: 6Questions: 2Answers: 0

I try to solve this problem but ????? also appears
Look here, please

http://stackoverflow.com/questions/39548336/utf-8-encoding-impossible-decode-html-table-characters

Question is related to datatables directly.
Any idea why ???? appears ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,722Questions: 1Answers: 10,108 Site admin

    I would suggest trying to set the PHP / DB charset like in one of the SO replies. My guess is that your PHP / DB connection is not UTF8 by default.

    Allan

  • SobsoftSobsoft Posts: 3Questions: 2Answers: 1
    Answer ✓

    I was helped by the editing of the function of the class of SSP (function simple). I added one more line to set the hard encoding UTF-8.

    Below line '$db = self::db( $conn );', I added 1 more line:
    $db->exec("set names utf8");

    It helped me.

  • allanallan Posts: 61,722Questions: 1Answers: 10,108 Site admin

    That would do it if the connection isn't set to be UTF8 by default.

    Thanks for posting back with your answer!

    Allan

This discussion has been closed.