PDA

Ver la Versión Completa : Byte-Order Mark found in UTF-8 File


f.villalba
14-feb-2009, 17:59
Hola a todos,

Estoy codeando bajo xHTML 1.0 Strict con el código de caracteres UTF-8.

S.O. Windows XP Profesional 32 Bits SP3

Editor Programación: Notepad++ v5.0.3

El código es HTML embebido dentro de un archivo guardado en PHP para que se puedan ejecutar scripts.

Codificación del archivo UTF-8, lo podéis ver aquí.
http://img4.imageshack.us/img4/8404/codificacionqj9.jpg

Código del documento web HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="es" xml:lang="es">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Texto</title>

<link href="estilo.css" rel="stylesheet" type="text/css" />

</head>

<body id="portada">
DIVS y etc.
</div>

<div id="contenido">
</div>

<div id="pie">
</div>

</body>

</html>

Mensaje de advertencia del validador xHTML:

Passed, 1 warning(s)

Byte-Order Mark found in UTF-8 File.

The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported.

Gracias por adelantado.

f.villalba
19-nov-2009, 00:04
Solución:

En NotePad++

Formato - Codificar en UTF-8 sin BOM

En Dreamweaver

Esta por propiedades de página

Eso se debe a que todavía algunos navegadores no soportan BOM

Más info:
http://es.wikipedia.org/wiki/UTF-8#Byte_order_mark_.28BOM.29

Apolo
19-nov-2009, 00:17
Gracias por regresar a comentar tu solución.

:aprueba:

f.villalba
19-nov-2009, 00:21
Gracias por regresar a comentar tu solución.

:aprueba:

Gracias a ti Apolo, a mí ComunidadHosting me ha enseñado más que esa simple solución. Compartir problemas y soluciones siempre es bueno.

Saludos,