You can write <META NAME=Contnet-Type Content="text/html;
charset=iso-8859-1">
in the top of template.


Андрей Чернов wrote:
> 
> I  see  search.cgi  print  HTTP  header  very  early, even before parsing
> template:
> 
> if(getenv("QUERY_STRING")||getenv("REQUEST_METHOD")){
>          printf("Content-type: text/html\r\n\r\n");
> }
> 
> The bug here is missing charset= part, i.e. there is _must_ be
> 
>          printf("Content-type: text/html; charset=%s\r\n\r\n",
>                   LocalCharset_from_template_htm);
> 
> and whole line must be moved after template parsed, when "LocalCharset"
> sensed.
> 
> Document  must  output  charset=  in  all  cases  when  possible, even if
> charset=iso-8859-1,   according   to  both  HTTP  standard  and  security
> recommendations. Apache group even add AddDefaultCharset directive to fix
> bad  documents/CGIs without charset= (f.e. like search.cgi produces) with
> forced "charset=iso-8859-1". When it happens, it makes non iso-8859-1
> searches (like Russian search) impossible.
______________
If you want to unsubscribe send "unsubscribe udmsearch"
to [EMAIL PROTECTED]

  • ... Андрей Чернов
    • ... Alexander Barkov
      • ... Андрей Чернов

Reply via email to