OG Facebook Goals - No recognition of accentuation

Asked

Viewed 348 times

2

Hello!

On my site, I put the og goals of Faceook, so far so good, the problem is that the title of the site and the news contains accents and when sharing the fields with accents are not displayed. Follows 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 is Municpio de It

Does anyone have a solution to this? Remembering that the meta charset is UTF-8

2 answers

1

  • The problem is that the title of the news is manageable, for example, is registered by the client in the administrative panel, in the share it picks up direct from the bank :/

  • So it’s not the bank’s charset the problem?

  • Not because the bank is also in utf-8 :'(

1


Solved, the problem is that the project was done by someone else by the Net Beans program and the files were saved in ASC format, only saved view by view in UTF-8 and solved the problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.