You should always use a proper full URL in the Location header. Try that
I doubt this will solve your problem, but it is good practice anyway.
One thing that would help debug a problem like this is to try and view
the raw HTTP, because that will lend some insight as to what character
encoding the Web clients (IE and Netscape) are declaring. My guess is
that the problem lies with the POST (when you receive the maker_name
form variable), because HTTP itself has an ISO-8859-1 character encoding
by definition, so there should be no ambiguity there. Variables that are
posted are contained in the content of the HTTP message itself which is
subject to interpretation based on content encoding.
Anyway, hope that lends some insight and gives you some ideas.
Jean-Christian Imbeault wrote:
> I have the following code which works fine in Netscape7 but doesn't in
> $maker_name = $_POST["maker_name"];
> $loc = "show_products.php?maker_name=$maker_name&".SID;
> header("Location: $loc");
> The problem is that the POST variables are coming in EUC-JP (japanese)
> correctly but for some reason IE re-encodes the variable into some
> other charset (SJIS I am guessing) when requesting the new page sent
> in the Header("location: ") ...
> So in Netscape I get redirected to this page:
> But in IE I get this instead:
> Is this a bug in IE (of course it is ;)? Is there a work around?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php