special characters

special characters

jjvdbosch@live.nljjvdbosch@live.nl Posts: 3Questions: 0Answers: 0
edited February 2010 in General
Hi,

Special characters like

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi Jaap,

    If you look at the JSON return from the server, is it correctly showing the non-Roman characters? DataTables does just do an innerHTML for data set fromt he server- so if the above code works, it should work when sent back from the server as well.

    Allan
  • jjvdbosch@live.nljjvdbosch@live.nl Posts: 3Questions: 0Answers: 0
    edited February 2010
    Hi Allen,

    Thanks for the response.

    In the JSON the non-Roman characters are corrrectly shown as for instance
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The non-Roman characters don't look right for me in Firebug: http://datatables.net/dev/zwemschooldeanemoon.nl.png . There isn't really any difference between the two nTd assignments that you've shown in code clips above - DataTables doesn't do any character encoding conversion. So I still think that the server isn't correctly returning UTF-8 (although I might be wrong ;-) ).

    It might be worth having a look through this thread (and it's link threads): http://datatables.net/forums/comments.php?DiscussionID=675#Item_4

    Another option might be to simple set the innerHTML of a test (empty) div on the page, just to see what happens when you take DataTables out of the loop.

    Regards,
    Allan
  • jjvdbosch@live.nljjvdbosch@live.nl Posts: 3Questions: 0Answers: 0
    Thx a lot Allen

    inserting mysql_query("SET character_set_results=utf8", $gaSql['link']) in server_processing.php;

    from the thread you suggested was the solution.

    Again thanks for the excellent support and product.

    Regards,
    Jaap
This discussion has been closed.