Title: Call to undefined function WPTelegram\FormatText\mb_detect_encoding
Last modified: February 18, 2023

---

# Call to undefined function WPTelegram\FormatText\mb_detect_encoding

 *  Resolved [lehuanpro](https://wordpress.org/support/users/lehuanpro/)
 * (@lehuanpro)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wptelegramformattextmb_detect_encoding/)
 * From version 4.0.2 i get error when publish new post in Vietnamese
 * Thông tin lỗi
   ================Có lỗi E_ERROR tại dòng 208 trong file: /home/cznvqpgq/
   [***/wp-content/plugins/wptelegram/includes/format-text/src/HtmlConverter.php](http://tapchiamthuc.net/wp-content/plugins/wptelegram/includes/format-text/src/HtmlConverter.php).
   Thông báo lỗi: Uncaught Error: Call to undefined function WPTelegram\FormatText\
   mb_detect_encoding() in /home/cznvqpgq/[***/wp-content/plugins/wptelegram/includes/format-text/src/HtmlConverter.php:208](http://tapchiamthuc.net/wp-content/plugins/wptelegram/includes/format-text/src/HtmlConverter.php:208)
   Stack trace:#0 /home/cznvqpgq/[***/wp-content/plugins/wptelegram/includes/format-text/src/HtmlConverter.php(122)](http://tapchiamthuc.net/wp-content/plugins/wptelegram/includes/format-text/src/HtmlConverter.php(122)):
   WPTelegram\FormatText\HtmlConverter->createDOMDocument(‘”Chanh \xC4\x91\xC3\xA0o…’)#
   1 /home/cznvqpgq/[***/wp-content/plugins/wptelegram/includes/Utils.php(493)](http://tapchiamthuc.net/wp-content/plugins/wptelegram/includes/Utils.php(493)):
   WPTelegram\FormatText\HtmlConverter->convert(‘”Chanh \xC4\x91\xC3\xA0o…’)#2 /
   home/cznvqpgq/[***/wp-content/plugins/wptelegram/includes/Utils.php(551)](http://tapchiamthuc.net/wp-content/plugins/wptelegram/includes/Utils.php(551)):
   WPTelegram\Core\includes\Utils::prepare_content(‘”Chanh \xC4\x91\xC3\xA0o…’, 
   Array)#3 /home/cznvqpgq/[***/wp-content/plugins/wptelegram/modules/p2tg/PostSender.php(1142)](http://tapchiamthuc.net/wp-content/plugins/wptelegram/modules/p2tg/PostSender.php(1142)):
   WPTelegram\Core\includes\Utils::smart_trim_excerpt(‘”Chanh \xC4\x91\xC3\xA0o…’,
   Array)#4 /home/cznvqpgq/[***/wp-content/plugins/wptelegram/modul](http://tapchiamthuc.net/wp-content/plugins/wptelegram/modul)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Irshad Ahmad](https://wordpress.org/support/users/irshadahmad21/)
 * (@irshadahmad21)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wptelegramformattextmb_detect_encoding/#post-16483573)
 * The plugin requires “mbstring” PHP extension to be active. Please contact your
   host to enable it. If that’s not possible, then you can downgrade to a prior 
   version like [3.2.2](https://downloads.wordpress.org/plugin/wptelegram.3.2.2.zip).
 *  Thread Starter [lehuanpro](https://wordpress.org/support/users/lehuanpro/)
 * (@lehuanpro)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wptelegramformattextmb_detect_encoding/#post-16483589)
 * Worked.
   Thanks for the help.

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * ![](https://ps.w.org/wptelegram/assets/icon-256x256.png?rev=2500018)
 * [WP Telegram (Auto Post and Notifications)](https://wordpress.org/plugins/wptelegram/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wptelegram/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wptelegram/)
 * [Active Topics](https://wordpress.org/support/plugin/wptelegram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptelegram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptelegram/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [lehuanpro](https://wordpress.org/support/users/lehuanpro/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-wptelegramformattextmb_detect_encoding/#post-16483589)
 * Status: resolved