Jump to content

Recommended Posts

Posted

Boas pesssoal!

Antes de mais: Já pesquisei sobre problemas de encoding e dos resultados encontrados, nenhum me ajudou...

Tenho o seguinte código:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
(...)

E os ficheiros estão a ser gravados como encoding UTF-8 no NetBeans

Funciona tudo bem, mas quando meto o site no alojamento, os caracteres ficam com erros, e no W3C Validator dá me o seguinte erro:

Character Encoding mismatch!

The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.

Line 5, Column 30: Internal encoding declaration utf-8 disagrees with the actual encoding of the document (windows-1252).

        <meta charset="UTF-8">

E isto não me entra na cabeça o que corrigir... Já o W3C Validator detecta o encoding automaticamente como iso-8859-1 :S

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.