Danish characters in vcl_error.

Audun Ytterdal audun at ytterdal.net
Fri Mar 27 14:26:25 CET 2009


You have to html-encode the danish characters..

Like this:

   <h1>Beklager, en feil har oppstått på en av VGs tjenester</h1>



On Fri, Mar 27, 2009 at 2:12 PM, Lars Jørgensen <itlj at gyldendal.dk> wrote:
> Hi,
>
> I'm doing this:
>
> sub vcl_error {
>     set obj.http.Content-Type = "text/html; charset=utf-8";
>     synthetic {"
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html>
>   <body>
>     <h1>Vi arbejder på systemet </h1>
>     <body>
> </html>
> "};
>     return (deliver);
>
> And getting this (omitting DOCTYPE for clarity):
>
> <html>
>  <body>
>    <h1>Vi arbejder p�77777703�77777645 systemet </h1>
>    body>
> </html>
>
> What am I doing wrong?
>
>
> --
> Lars Jørgensen
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>



-- 
Audun Ytterdal
http://audun.ytterdal.net



More information about the varnish-misc mailing list