How to properly handle international character in PHP / MySQL / Apache

后端 未结 5 1878
我在风中等你
我在风中等你 2021-01-03 14:47

I need to create an application in PHP that can handle all Unicode characters in all places — edit fields, static HTML, database. Can somebody tell me the complete list of a

5条回答
  •  自闭症患者
    2021-01-03 15:39

    Important: You should also ensure that you use UTF-8 as connection charset when connecting to Mysql from PHP!

    For mysqli this is done by

    mysqli_set_charset($dblink, 'utf-8')
    

    http://de3.php.net/manual/en/mysqli.set-charset.php

提交回复
热议问题