简体   繁体   中英

Character Encoding - Find broken character?

Simple problem.. I need to detect this character . If it exists I need to utf8_encode the string. strpos doesn't find it.. Server doesn't have mb_detect_encoding . Any ideas?

Some strings are valid so I can't utf8 encode a valid utf8 string or bad things happen..

Are you sure all of the below are set to UTF-8:

  1. Your database table/fields are set to store UTF-8.
  2. Your MySQL (or other database) connection is transmitting in UTF-8.
  3. Your definitive output is set to be UTF-8.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM