Title: iconv_get_encoding error
Last modified: January 19, 2017

---

# iconv_get_encoding error

 *  Resolved [KevinPlusPlus](https://wordpress.org/support/users/kevinplusplus/)
 * (@kevinplusplus)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/iconv_get_encoding-error/)
 * Hello,
 * I have found a small issue in the plugin but also offer the solution!
 * On my server, we do not have the iconv module installed, so line 751 of bbpress-
   notify-nospam.php was causing a 500 internal server error. The presence of the
   iconv function is tested on a later call, but not this call, nor is the $do_enc
   setting checked either. So, to match the setting check and function check that
   appears later, the following patch should take care of it:
 * replace:
 *  $enc = iconv_get_encoding( ‘internal_encoding’ );
    $preferences = apply_filters(‘
   bbpnns_subject_enc_preferences’, array( ‘input-charset’ => $enc, ‘output-charset’
   => “UTF-8”, ‘scheme’ => ‘Q’ ) );
 * with this:
 *  if ( true === $do_enc && function_exists( ‘iconv_get_encoding’ ) )
    { $enc =
   iconv_get_encoding( ‘internal_encoding’ ); $preferences = apply_filters( ‘bbpnns_subject_enc_preferences’,
   array( ‘input-charset’ => $enc, ‘output-charset’ => “UTF-8”, ‘scheme’ => ‘Q’ ));}
 * This matches a bit later where you DO already have:
 *  if ( true === $do_enc && function_exists( ‘iconv_mime_encode’ ) )
 * I hope that this can make it into the next version to possibly save someone else
   the troubleshooting of hunting this down.
 * Thanks!

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

 *  Plugin Author [useStrict](https://wordpress.org/support/users/usestrict/)
 * (@usestrict)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/iconv_get_encoding-error/#post-8673566)
 * Hi Kevin,
 * Thanks for catching that! I’ll definitely add it to the next release (hopefully
   by this coming Sunday).
 * Cheers,
    Vinny
 *  Plugin Author [useStrict](https://wordpress.org/support/users/usestrict/)
 * (@usestrict)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/iconv_get_encoding-error/#post-8676497)
 * The fix is out, available in 1.15.2
 *  Thread Starter [KevinPlusPlus](https://wordpress.org/support/users/kevinplusplus/)
 * (@kevinplusplus)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/iconv_get_encoding-error/#post-8676528)
 * Thanks, glad to be of help!

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

The topic ‘iconv_get_encoding error’ is closed to new replies.

 * ![](https://ps.w.org/bbpress-notify-nospam/assets/icon-256x256.png?rev=3449133)
 * [bbPress Notify (No-Spam)](https://wordpress.org/plugins/bbpress-notify-nospam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-notify-nospam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-notify-nospam/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-notify-nospam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-notify-nospam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-notify-nospam/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [KevinPlusPlus](https://wordpress.org/support/users/kevinplusplus/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/iconv_get_encoding-error/#post-8676528)
 * Status: resolved