zeroonnet Posted May 31, 2008 at 10:22 PM Report Share #188868 Posted May 31, 2008 at 10:22 PM Boas, eu uso o Zend Studio para editar os meus ficheiros .php só que ao lelos no firefox as palavras que têm acentos vêm mal escritas :S Penso que seja do charset mas não sei qual usar... Será que me conseguem dizer como resolver isto? Fiquem Bem Link to comment Share on other sites More sharing options...
Guest id194 Posted May 31, 2008 at 11:44 PM Report Share #188878 Posted May 31, 2008 at 11:44 PM Isso não terá propriamente a ver com o PHP, mas sim com o encoding no ficheiro HTML. Experimenta por UTF-8 no encoding no código HTML que é mandado para o browser. Se estas a falar de pequenos testes que vais fazendo e não de um projecto completo onde exista HTML com pés e cabeça, vai ao menu View » Character Encoding e altera para UTF-8 ou ISO-8859-1 e vê se muda alguma coisa... Link to comment Share on other sites More sharing options...
zeroonnet Posted May 31, 2008 at 11:56 PM Author Report Share #188881 Posted May 31, 2008 at 11:56 PM No firefox consigo mudar e resolver mas queria era mesmo resolver nos ficheiros :S Link to comment Share on other sites More sharing options...
Guest id194 Posted June 1, 2008 at 03:31 AM Report Share #188895 Posted June 1, 2008 at 03:31 AM Já te disse o que tens a fazer, tens de mudar o encoding no código HTML para um compatível (UTF-8 ou ISO-8859-1, penso eu de que). Link to comment Share on other sites More sharing options...
fnds Posted June 1, 2008 at 10:14 AM Report Share #188927 Posted June 1, 2008 at 10:14 AM Bem, isto é mais html que php, <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> ou <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> Link to comment Share on other sites More sharing options...
pedrosorio Posted June 1, 2008 at 10:28 AM Report Share #188932 Posted June 1, 2008 at 10:28 AM Eu uso sempre á etc. loool Não respondo a dúvidas por mensagem. Link to comment Share on other sites More sharing options...
djthyrax Posted June 10, 2008 at 03:33 PM Report Share #190501 Posted June 10, 2008 at 03:33 PM Na verdade, fnds, isso é mais HTTP do que HTML ou PHP. O que tu fizeste é o equivalente a header("Content-Type: text/html; charset=UTF-8"); 😞 Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum! Link to comment Share on other sites More sharing options...
fnds Posted June 10, 2008 at 04:42 PM Report Share #190521 Posted June 10, 2008 at 04:42 PM Não, é tanto HTML como HTTP, "O que tu fizeste é o equivalente a header("Content-Type: text/html; charset=UTF-8");" 😉 zeroonnet, faz como o tirácio disse... Link to comment Share on other sites More sharing options...
djthyrax Posted June 10, 2008 at 06:15 PM Report Share #190542 Posted June 10, 2008 at 06:15 PM Não, é tanto HTML como HTTP, "O que tu fizeste é o equivalente a header("Content-Type: text/html; charset=UTF-8");" 😉 Não, é mesmo HTTP. O header() limita-se a definir um header HTTP, o <meta> que mostraste limita-se a simular esse header HTTP. Ou seja, não é uma "funcionalidade" do HTML ou do PHP: é uma característica do protocolo HTTP. Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now