Okay
  Public Ticket #1545560
Character coding
Closed

Comments

  •  1
    Paul D. KPOGNON started the conversation

    Dear Developpers,

    Fisrt of all I thank you for this great product that is saving my life.

    I have a problem for the coding of the characters.

    When I creat a table using wpDataTables, the text in French is imported integrally with the accents like (à, é,ç,è...). 

    The display of those text using wpDataTables is ok but if I retreive those text from the database using mysql_query the characters with accent appear wrongly like bellow. I use all sort of UTF-8 converters but no result.

    Nontiss�s, m�me impr�gn�s, enduits, recouverts ou stratifi�s.

    My questions are:

    1- Is there any way to convert the text to HTML format before it goes to the database like comming from an INPUT?

    2- Or, is there a script to convert the texte to HTML format after retrieving it from the database?

    3- How can you assist me to solve that issue?

    Thank you.

  •  471
    Isidora replied

    Hi Paul,
    Thank you for your purchase.

    We are not sure why you can't display correctly data from database with special characters, because we made table in database with different special characters and it is shown just fine in table made from query.(attachments)

    Can you please take a screenshot of data from table in database that you use in query for making wpdatatables?

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •  1
    Paul D. KPOGNON replied

    Dear Jovanovic,

    Thank you for your quick reply.

    The display using wpDataTables is perfect.

    The problem is this:  I want to display a particular data in my page. 

    When I retreive those text from the database using mysql_query the characters with accent appear wrongly.

    $sel ="SELECT id, note FROM tableau where id = 5";

    $t = mysql_query($sel,$cn) or die(mysql_error());

    while($res = mysql_fetch_assoc($t)){

    echo $res['note'];

    }

    The result is 

    Nontiss�s, m�me impr�gn�s, enduits, recouverts ou stratifi�s.

    But if I display the whole table using wpDataTables everything is perfect.

    That is my issue.

    Thank you.

  •  1
    Paul D. KPOGNON replied

    Dear Jovanovic,

    My question is:

    Is there any way I can create a table using wpDataTables where the data from the data source is converted to HTML format before going to the table. 

    For example the character è is converted to è à converted to à.....

    So that the browser can display it when it's retreived using any application.

    That is the main of my preocupation please.

    Thank you.

    Paul


  •  471
    Isidora replied

    Hi Paul,

    "The display using wpDataTables is perfect.

    The problem is this:  I want to display a particular data in my page."

    I am glad that tables is working fine.

    Please note that customization questions like this one are not covered in the included support for the plugin. Included support covers help with bugs and general inquiries for the plugin features, but not writing custom code.

     As you're developing some custom solution you can take a look in our documentation about Front-end callbacks and also about Actions and Filters which are defined in wpDataTables plugin for customization's by developers.



    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables