duanlian1320 2012-03-25 14:20
浏览 28
已采纳

在服务器上的DB中显示页面上的泰语字符PHP / Thai chars ok

I am trying to show Thai Characters in my app PHP / MySQL, data is being inserted from a backend process to the database and Thai chars are in the Database, but are not show in the front end. PHP.

I have tried with UTF-8 encoding in the page, and Windows-874

What is the right combination for this to be shown correct in the Browser? see image

enter image description hereenter link to image bigger size thanks

  • 写回答

2条回答 默认 最新

  • dongying7847 2012-03-25 14:29
    关注

    The site where you enter the text need to be utf-8 encoded and the table field.

    Another thing which is often forgotten is to set

    mysql_set_charset('utf8');
    

    after opening the connection.

    (And, of course, the frontend must be utf-8 encoded.)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?