How to check the charset of string?

前端 未结 7 1703
心在旅途
心在旅途 2021-02-04 08:48

How do I check if the charset of a string is UTF8?

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 09:23

    if its send to u from server

    echo $_SERVER['HTTP_ACCEPT_CHARSET'];
    

提交回复
热议问题