Problems with SQL x PHP enconding

Asked

Viewed 39 times

1

I have the following problem: My files are coming out with accentuation problems, my tables use utf-8 as encondig, html files are marked utf-8 and even so accents do not work:

<html>
<head>
    <base href="https://pankaimoveis.com.br/app/" />
<title>Panka Im�veis | Agilidade e Confiança</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

in PHP files use also:

<?php
error_reporting(0);
@header( "Cache-Control: max-age=0" );
@header( 'Content-Type: text/html; charset=utf-8' );

and . htacess is like this:

Options +FollowSymLinks
IndexOptions +Charset=UTF-8

<Files ~ "\.html?$">  
     Header set Content-Type "text/html; charset=utf-8"
</Files>

Does anyone know what can be beyond all this?

1 answer

-2

Try using in your header

ini_set('default_charset', 'UTF-8');

  • It still didn’t work, I put it in the header, in html, that would be it?

  • How is your index file? index.php or index.html? If it is index.php, try putting <?php ini_set('default_charset', 'UTF-8'); ?>

Browser other questions tagged

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