doudizhi947129 2016-01-31 14:43
浏览 14

PHP网站编码问题

I received a website , first of all i will provide some explanation: Website PHP 5.3 Mysql Database and table charset LATIN1 Meta Tags used in files are windows 12...

Now first issue is that when i see index.php file in my PC Notepad++ it shows me Arabic there but when i see the same file in my windows server notepad++ it shows different encoding.

Second i have this website which is not showing data in Arabic in browser and all the data in database is in different format/garbage characters.

Any help

  • 写回答

1条回答 默认 最新

  • douxiji8707 2016-01-31 14:48
    关注

    Try using these commands;

    ALTER DATABASE sdlc_demo CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    ALTER TABLE admin CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    

    How to convert an entire MySQL database characterset and collation to UTF-8?

    评论

报告相同问题?

悬赏问题

  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程