Title: Call to undefined function &#8216;mb_detect_encoding&#8217;
Last modified: July 5, 2018

---

# Call to undefined function ‘mb_detect_encoding’

 *  Resolved [pixelbrad](https://wordpress.org/support/users/pixelbrad/)
 * (@pixelbrad)
 * [8 years ago](https://wordpress.org/support/topic/call-to-undefined-function-mb_detect_encoding-2/)
 * First off, I am aware that someone posted this issue here over a year ago.
 * Second, this issue is still breaking sites over one year later.
 * Can you not simply check if the `mb_detect_encoding` function exists before calling
   it?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Daniel Espinoza](https://wordpress.org/support/users/growdev/)
 * (@growdev)
 * [8 years ago](https://wordpress.org/support/topic/call-to-undefined-function-mb_detect_encoding-2/#post-10466461)
 * Thanks for the suggestion [@pixelbrad](https://wordpress.org/support/users/pixelbrad/)
   I’ll get it sorted.

Viewing 1 replies (of 1 total)

The topic ‘Call to undefined function ‘mb_detect_encoding’’ is closed to new replies.

 * ![](https://ps.w.org/convertkit/assets/icon-256x256.jpg?rev=3160977)
 * [Kit (formerly ConvertKit) - Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages](https://wordpress.org/plugins/convertkit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/convertkit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/convertkit/)
 * [Active Topics](https://wordpress.org/support/plugin/convertkit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/convertkit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/convertkit/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Espinoza](https://wordpress.org/support/users/growdev/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/call-to-undefined-function-mb_detect_encoding-2/#post-10466461)
 * Status: resolved