Title: cachify with oembed
Last modified: September 1, 2016

---

# cachify with oembed

 *  Resolved [snoffel](https://wordpress.org/support/users/snoffel/)
 * (@snoffel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cachify-with-oembed/)
 * Hi guys,
 * probably it is just me, but oembeds look ugly as soon as they get cachified on
   my site (german Umlaute and quotations get ugly).
 * There seem to be no charset definition in the oembed header, for some reason 
   the browsers guesses correct utf-8 as long as it is not compressed and it guesses
   some stupid charset as soon its is cachified.
 * Is there an easy way to disable cachify only for all my oembed-requests?
 * Thanks a lot for maintaining this great plugin!
 * [https://wordpress.org/plugins/cachify/](https://wordpress.org/plugins/cachify/)

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

 *  Plugin Support [Torsten Landsiedel](https://wordpress.org/support/users/zodiac1978/)
 * (@zodiac1978)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cachify-with-oembed/#post-7562259)
 * Is there a testcase for which you can provide us with a link, so we can have 
   a look?
 * All the best,
    Torsten
 *  Thread Starter [snoffel](https://wordpress.org/support/users/snoffel/)
 * (@snoffel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cachify-with-oembed/#post-7562260)
 * Hmmmm, as I read my own lines … I guess the main issue is that oembeds don’t 
   have a charset declaration by default.
 * By adding these lines in functions.php I get it working even with Cachify activated.
 *     ```
       function add_charset_in_oembed() {echo '<meta charset="UTF-8" />
           ';}
       add_action( 'embed_head', 'add_charset_in_oembed', 98 );
       ```
   
 * That’s the better solution, right?
 *  Plugin Support [Torsten Landsiedel](https://wordpress.org/support/users/zodiac1978/)
 * (@zodiac1978)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cachify-with-oembed/#post-7562264)
 * Maybe a server issue?
 * Have you tried to add a default charset per .htaccess?
 * `AddDefaultCharset utf-8`
 * All the best,
    Torsten
 *  Thread Starter [snoffel](https://wordpress.org/support/users/snoffel/)
 * (@snoffel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/cachify-with-oembed/#post-7562274)
 * Thanks a lot for your super quick response!
 * Yes, i tried that without my function: your htaccess suggestion would have helped,
   too.
 * So now i have two ways to ensure that all characters are displayed correctly.
   Thanks again.

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

The topic ‘cachify with oembed’ is closed to new replies.

 * ![](https://ps.w.org/cachify/assets/icon-256x256.png?rev=2505413)
 * [Cachify](https://wordpress.org/plugins/cachify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cachify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cachify/)
 * [Active Topics](https://wordpress.org/support/plugin/cachify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cachify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cachify/reviews/)

## Tags

 * [charset](https://wordpress.org/support/topic-tag/charset/)
 * [oEmbed](https://wordpress.org/support/topic-tag/oembed/)

 * 4 replies
 * 2 participants
 * Last reply from: [snoffel](https://wordpress.org/support/users/snoffel/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/cachify-with-oembed/#post-7562274)
 * Status: resolved