Title: [Plugin: Question and Answer Forum] encoding issues.
Last modified: August 19, 2016

---

# [Plugin: Question and Answer Forum] encoding issues.

 *  [nikosgr](https://wordpress.org/support/users/nikosgr/)
 * (@nikosgr)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/)
 * Hi.
    i just installed the plugin but i am facing an encoding problem when a question
   is insered in a non english language such as greek. my page and my db are both
   utf-8
 * Any reccommendations?
 * [http://wordpress.org/extend/plugins/question-and-answer-forum/](http://wordpress.org/extend/plugins/question-and-answer-forum/)

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

 *  Plugin Author [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * (@trevorpythag)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858225)
 * Thanks for downloading the plugin. The plugin takes the text from the textbox,
   applies htmlentities and then uses it in the wp_insert_post function which leads
   me to belive the error is in the use of wp_insert_post. Having searched in the
   support forums for this problem I think the posts at
    [http://wordpress.org/support/topic/using-wp_insert_post-with-special-utf8-characters](http://wordpress.org/support/topic/using-wp_insert_post-with-special-utf8-characters)
   may help.
 * The person asking the question there seems to have the same problem. The problem
   seemed to be that the code
    define(‘DB_CHARSET’, ‘utf8’); define(‘DB_COLLATE’,”);
   was missing from their wp-config file.
 * Could you check whether these lines of code are in your wp-config file?
 * Thanks,
    Dave
 *  Thread Starter [nikosgr](https://wordpress.org/support/users/nikosgr/)
 * (@nikosgr)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858245)
 * Thanks for your response Dave.
    i’ve checked my wp-config file and it is exactly
   as you say it should be.
 * i’ve deactivated all of the other plugins for just in case but the problem still
   exists.
 * the encoding problem only apears on the question itself. The title appears fine
   without any problems.
 * regards
    Nikos
 *  Plugin Author [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * (@trevorpythag)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858338)
 * Sorry about the delay in reply.
    I’m not too sure about the problem but as I 
   said before it seems to be something to do with the way the plugin implements
   wp_insert_post. I don’t have too much experience with encoding. If you find a
   solution please post.
 * Sorry I can’t be of more help,
    Dave
 *  Thread Starter [nikosgr](https://wordpress.org/support/users/nikosgr/)
 * (@nikosgr)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858345)
 * No worries!
    i hope i will find a solution Dave. I’ve seen your plugin in action
   and i must say it rocks 🙂
 * regards
 *  [cosmos0monster@gmail.com](https://wordpress.org/support/users/cosmos0monstergmailcom/)
 * (@cosmos0monstergmailcom)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858416)
 * Hi,
    Nice plugn.
 * I’m install the plugn, But question add text encoding error.
 * example:
    Insert “Test question” => “Test question”,working / define(‘DB_COLLATE’,‘
   utf8_unicode_ci’);/ But Insert “Энэ бол тест” => “Ð­Ð½Ñ”. tnx,
 *  Plugin Author [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * (@trevorpythag)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858423)
 * Hopefully version 1.2.5 has now fixed this problem.
 * It seems it was to do with the call to htmlentities when the text of the question
   is added in addquestion.php
 *  [cosmos0monster@gmail.com](https://wordpress.org/support/users/cosmos0monstergmailcom/)
 * (@cosmos0monstergmailcom)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858424)
 * Thanks Dave,
 * Good job
 *  [cosmos0monster@gmail.com](https://wordpress.org/support/users/cosmos0monstergmailcom/)
 * (@cosmos0monstergmailcom)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858425)
 * Thanks Dave,
    Upgrade to version 1.2.5. Now working. Good job

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

The topic ‘[Plugin: Question and Answer Forum] encoding issues.’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/question-and-answer-forum.svg)
 * [Question and Answer Forum](https://wordpress.org/plugins/question-and-answer-forum/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/question-and-answer-forum/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/question-and-answer-forum/)
 * [Active Topics](https://wordpress.org/support/plugin/question-and-answer-forum/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/question-and-answer-forum/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/question-and-answer-forum/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [cosmos0monster@gmail.com](https://wordpress.org/support/users/cosmos0monstergmailcom/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-encoding-issues/#post-1858425)
 * Status: not resolved