On Wed, 2008-01-02 at 18:06 +0200, Giannis Economou wrote:

Hi Giannis

Debian and Apache/2.2.6 (Unix) mod_fastcgi/2.4.6 mod_perl/2.0.3
Perl/v5.8.8 here.

> Now:
> - when you run the instance.fcgi as fcgid script, cookie is set and in
> browser you get garbage in the Greek text (encoding is correctly set in
> browser).

Same here.

> - when you run the instance.fcgi as plain cgi script, everything is fine

Same here.

> - when you comment the cookie setting line in WebApp.pm, everything is
> working fine, regardless of fcgid or plain cgi.

Same here.

> - when you use CGI::Simple instead of CGI.pm (for example use a
> CGI::Simple object instead of $self->query which is a CGI.pm in the
> example above to create the cookie), everything is working fine (fcgi /
> plain cgi, set cookie / do not set cookie, everything is fine).

Same here.

> Here is the output of CGI::Application, as sent in browser, but as
> unicode codes:
> Correct:
> Hello ... \xce\x9a\xce\xb1\xce\xbb\xce\xb7\xce\xbc\xce\xad\xcf\x81\xce\xb1!
> 
> Erroneous:
> Hello ...
> \xc3\x8e\xc2\x9a\xc3\x8e\xc2\xb1\xc3\x8e\xc2\xbb\xc3\x8e\xc2\xb7\xc3\x8e\xc2\xbc\xc3\x8e\xc2\xad\xc3\x8f\xc2\x81\xc3\x8e\xc2\xb1!

I'd try double-encoding the correct text and/or double-decoding the
incorrect text. Perhaps that will tell you something.
-- 
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/index.html



#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to