Quoting "Andre E. Bar'yudin" <[EMAIL PROTECTED]>:

> I assume that the
> problem is related to how PHP handles the response from your browser.
> Mozilla probably doesn't provide the response character set, during form
> submission and Konqueror does, hence the difference between them.  Now,
> when PHP doesn't have a response content type it probably assumes some
> default (say, iso-8859-1) and escapes every out-of-the-range character
> by HTML entities.

OK, a little test - which I told Arye to do, but decided to do myself: I wrote a
small CGI:

#!/bin/bash
echo "Content-type: text/plain"
echo
cat -

And I created a small form:

<HTML>
    <HEAD>
        <TITLE>Test</TITLE>
        <META HTTP-EQUIV="Content-type" VALUE="text/html; Charset=utf8">
    </HEAD>
    <BODY>
        <FORM ACTION="cgi-bin/foo.cgi" METHOD="POST">
            <INPUT TYPE="text" NAME="foobar" SIZE="50"><BR>
            <INPUT TYPE="submit" VALUE="send">
        </FORM>
    </BODY>
</HTML>

And then I used the form, and submitted the Hebrew name "Avraham" in Mozilla and
Konqueror.

Result in Mozilla:
foobar=%26%231488%3B%26%231489%3B%26%231512%3B%26%231492%3B%26%231501%3B

Result in Konqueror:
foobar=%D7%90%D7%91%D7%A8%D7%94%D7%9D

So it is definitely *not* PHP which sends out the HTML entities, but Mozilla
itself - as you can see, the cgi itself is pure bash.

Herouth

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to