Jump to content
Fórum Script Brasil
  • 0

Erro de acentuação


Olá pessoal,

Estou com um erro de acentuação.

O erro é quando tem acentos no echo do php

No começo do HTML tem:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
e depois tem no PHP:
<?php header("Content-Type: text/html; charset=ISO-8859-1",true);?>

o que pode ser? Obrigado

Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0


Leia um pouco sobre as funções utf8_encode e utf8_decode.

Seguem os links :



fiz um teste básico e funcionou:


echo "<p>João</p>";

echo "<p>".utf8_encode("João")."</p>";


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Cloud Computing

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...