Title: Help With php include characters encoding
Last modified: August 22, 2016

---

# Help With php include characters encoding

 *  Resolved [closed account](https://wordpress.org/support/users/member11/)
 * (@member11)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/help-with-php-include-characters-encoding/)
 * Hi there.
    The php code widget works fine except that we’re having issues displaying
   special characters in the widget.
 * We are pulling in the text using an include file such as:
 * <?php include $_SERVER[‘DOCUMENT_ROOT’]. ‘/path-to-file/footer.php’; ?>
 * In the footer.php file we have some address information listed that uses a special
   character on a French street name.
 * I’ve attempted to add the following code to my include statement, but I’m really
   just hoping, without to much knowledge.
 * header(‘Content-Type: text/html; charset=UTF-8’);
 * The pages of our site display the special characters ok, so the theme is ok, 
   just not in the php widget.
 * I hope you can shed some light on this. Thanks
 * Paul
 * [https://wordpress.org/plugins/php-code-widget/](https://wordpress.org/plugins/php-code-widget/)

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

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 5 months ago](https://wordpress.org/support/topic/help-with-php-include-characters-encoding/#post-5537470)
 * That’s not really anything to do with the widget. It doesn’t change character
   sets or anything else along those lines.
 *  Thread Starter [closed account](https://wordpress.org/support/users/member11/)
 * (@member11)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/help-with-php-include-characters-encoding/#post-5537475)
 * thanks for your reply.
    can you point me in the right direction with how to fix?

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

The topic ‘Help With php include characters encoding’ is closed to new replies.

 * ![](https://ps.w.org/php-code-widget/assets/icon.svg?rev=992095)
 * [PHP Code Widget](https://wordpress.org/plugins/php-code-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-widget/reviews/)

## Tags

 * [php include](https://wordpress.org/support/topic-tag/php-include/)

 * 2 replies
 * 2 participants
 * Last reply from: [closed account](https://wordpress.org/support/users/member11/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/help-with-php-include-characters-encoding/#post-5537475)
 * Status: resolved