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条)

报告相同问题?

悬赏问题

  • ¥15 BV260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序