See the updated JHP with Unicode Test example.
Update your code with JAL.

Live can be seen at
   http://olegykj.sourceforge.net/jhp/

Tested on Windows and Linux; with Internet Explorer
and Firefox.


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

> 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




       
____________________________________________________________________________________Be
 a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to