Hello everyone I'm having problems with missing characters in my code, tried to use some things with utf-8 but didnt worked. the entire site is on php but the rest is working fine just this page that is having this problem.
<?php
$tipo =$_GET["tipo"];
$conexao = mysqli_connect("127.0.0.1","root","","db_tcc") or die ("Não foi possível se conectar com o servidor.");
$varsql = "SELECT * FROM tb_guias WHERE TIPO=$tipo ORDER BY id ASC";
$carregar_guias = mysqli_query($conexao, $varsql);
while ($linha = mysqli_fetch_array($carregar_guias))
{
$titulo = $linha["TITULO"];
$blob1 = $linha["IMG1"];
$blob2 = $linha["IMG2"];
$blob3 = $linha["IMG3"];
$texto = $linha["TEXTO"];
$img1 = imagecreatefromstring($blob1);
ob_start();
imagejpeg($img1, null, 80);
$data1 = ob_get_contents();
ob_end_clean();
$img2 = imagecreatefromstring($blob2);
ob_start();
imagejpeg($img2, null, 80);
$data2 = ob_get_contents();
ob_end_clean();
$img3 = imagecreatefromstring($blob3);
ob_start();
imagejpeg($img3, null, 80);
$data3 = ob_get_contents();
ob_end_clean();
echo "<div class='loc'><table class='tablel'><tr><td colspan='3'>$titulo</td></tr><tr><td>";
echo '<img src="data:image/jpg;base64,' . base64_encode($data1) . '" class="imag" />';
echo"</td><td>";
echo '<img src="data:image/jpg;base64,' . base64_encode($data2) . '" class="imag" />';
echo"</td><td>";
echo '<img src="data:image/jpg;base64,' . base64_encode($data3) . '" class="imag" />';
echo "</td></tr><tr><td colspan='3'>$texto</td></tr></table></div>";
echo "<br><hr><br>";
}
?>