How to prevent weird characters from showing up in web pages

前端 未结 4 1316
天涯浪人
天涯浪人 2021-01-23 07:36

Often when outputting strings from a database onto a webpage, special characters get displayed as some other weird characters (in my example, an em-dash gets tu

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 08:10

    in your html view page use

    
    

    and if you are inserting some other language character in place of english than make that column utf8-general-ci

提交回复
热议问题