De un tiempo a esta parte he recuperado mi lado php-webmaster y me he econtrado con algunos problemas de encodig.

El tema era que necesitaba servir una web utf-8 y por mucho que pusiera el tipico "Content-Type" content="text/html; CHARSET=utf-8" en el "head" del documento la codificacion de caracteres saltaba a iso-8859-1. El problema es que estaba editando los ficheros con el vim en una FreeBSD con iso-8859-1.

Solucion al poblema:

ENCODING

If your locale works properly, Vim will try to set the 'encoding' option
accordingly. If this doesn't work you can overrule its value:

:set encoding=utf-8

Y a tirar millas! si es que la documentacion esta para algo... ;)

ACTUALIZACION 25/05/07:

Tambien puede ayudar un .htaccess tal que asi...

AddDefaultCharset UTF-8
AddCharset utf-8 .cgi .html
AddType "text/html; charset=UTF-8" .cgi .html

Caregorias

Add new comment

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
CAPTCHA
10 + 10 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.