I got that :

CGI Error> The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:





 Time is
  §¿§ä§à §Ú§ß§ä§Ö§â§Ö§ã§ß§í§Û §ä§Ö§ã§ä!
 Time is

----- Original Message -----
From: "Oleg Kobchenko" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Friday, May 11, 2007 9:20 PM
Subject: Re: [Jprogramming] JHP bug ?


The output and stdout conditions are satisfied,
because UTF-8 is passed on binary level, as byte stream.

However, the source-level conditions remain:

- file MUST be saved as UTF-8, e.g. as edited in J

- at the beginning, append charset:

    ContentType'text/html; charset=utf-8'


For example,

<% ContentType'text/html; charset=utf-8' [ Expires 0 %>
<html><head>
</head><body>
 <p>Time is <%= 6!:0 '' %></p>
 <p>§¿§ä§à §Ú§ß§ä§Ö§â§Ö§ã§ß§í§Û §ä§Ö§ã§ä!</p>
 <p>Time is <%= 6!:0 '' %></p>
</body></html>


--- Oleg Kobchenko <[EMAIL PROTECTED]> wrote:

A few things need to happen:
 - the input is saved as UTF-8 file
 - the output routine needs to support UTF-8
 - the stdout stream needs to support UTF-8 or be converted to Unicode

As a quick workaround, you might want to cosider
encoding the non-ASCII chars with HTML entities

Tr&eacute;s


--- JC Coez <[EMAIL PROTECTED]> wrote:

> It took me a long time before I find why my jhp files did not work as > I
> expected.
> When I put some text with letters with accent ( often the case in > french )
> the <%....%> are not correctly translated. For example :
> ------------------------------------------
> <% ContentType'text/html' %>
> <html><head>
> </head><body >
> Tr¨¨s mal...
> <p>Time is <%= 6!:0 '' %></p>
> </body></html>
> ------------------------------------------
> The time is not displayed.
>
> JC
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>




____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm





____________________________________________________________________________________Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------------------------
Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail.
Aucun virus connu a ce jour par nos services n'a ete detecte.






----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to