OG Facebook Goals - No accent recognition

2

Hello

On my site, I put the Faceook og goals, so far so good, the problem is that the site title and the news contains accents and when sharing the fields with accents are not displayed. Here is the code used:

 <?php
        if (isset($noticias_interna)) {
            foreach ($noticias_interna as $interna_noticias) {
                ?>
                <meta property="og:locale" content="pt_BR">
                <meta property="og:type" content="article"/>
                <meta property="og:url" content="<?php print base_url(); ?>noticias/1/<?php print $interna_noticias->slug_noticia ?>"/>
                <meta property="og:title" content="Município de Itá - <?php print $interna_noticias->nome_noticia ?>">
                <meta property="og:site_name" content="Prefeitura de Itá"/>
                <meta property="og:description" content="<?php print $interna_noticias->lead_noticia ?>"/>
                <meta property="og:image" content="<?php print base_url(); ?>noticias/imagem_crop/<?php print $interna_noticias->imagem_noticia ?>"/>
                <meta name="twitter:creator" content="@o2multi">
                <meta name="twitter:title" content="Município de Itá - <?php print $interna_noticias->nome_noticia ?>">
                <meta name="twitter:description" content="<?php print strip_tags(character_limiter($interna_noticias->lead_noticia, 150)); ?>">
                <meta name="twitter:image" content="<?php print base_url(); ?>noticias/imagem_crop/<?php print $interna_noticias->imagem_noticia ?>">

                <?php
            }
        }

For example, the title of the site is Itá Municipality, but when sharing it is Municipality of It

Does anyone have a solution for this? Remembering that the charset goal is UTF-8

    
asked by anonymous 11.03.2016 / 14:13

2 answers

1

    

15.03.2016 / 11:49
1

Have you ever tried using ASC II characters? Sometimes this may be because your server does not support some character types. I always use ASC II for accents, here's a table with the codes: link

Try replacing í with &#237; e with &#225;

    
11.03.2016 / 14:20