• Hi there,

    Gutenberg blocks automatically converts the link to embed when I paste a link in a post. This is ok but there is character encoding problem for texts in the embed description.

    Printscreen

    My web site’s language is non English. There isn’t any character problem in the posts.

    How can I fix this problem?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • It seems that the issue is related to the WordPress embed itself.

    I was having the same issue, after some check I found out that WordPress removed the charset head from the default embed template.

    I fixed it with the following function which should be inserted inside your functions.php :

    add_action('embed_head', 'fix_wp_embed_charset');
    function fix_wp_embed_charset(){
        ?><meta charset="<?php bloginfo( 'charset' ) ?>"><?php
    }

    @cantuaria Thank you. I had the same problem and your solution helped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Character encoding problem in embed area’ is closed to new replies.