And by the way, please check the NOTE: on
http://jp2.php.net/manual/en/function.header.php for the use of header().
Something's missing in the way you used it--perhaps, this is causing the
problem...

- E

<quoted>
Note:  HTTP/1.1 requires an absolute URI as argument to Location:  including
the scheme, hostname and absolute path, but some clients accept relative
URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF']  and
dirname() to make an absolute URI from a relative one yourself:

header("Location: http://".$_SERVER['HTTP_HOST']
                      .dirname($_SERVER['PHP_SELF'])
                      ."/".$relative_url);
</quoted>

On Tuesday, September 10, 2002 3:15 PM


> Hello,
>
> On Tuesday, September 10, 2002 1:52 PM
> Jean-Christian Imbeault wrote:
>
> <snip>
> > 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: ") ...
> </snip>
>
> I just wonder how do you know that the POST variable are in EUC-JP. Did
you
> set this in your ini? Or, did you encode your php files in EUC-JP and you
> have the directive inside <meta> tags?
>
> I think you may want to play with these settings:
>
>   mbstring.internal_encoding
>   mbstring.http_input
>   mbstring.http_output
>   mbstring.detect_order
>
> Or, you can try the "Multi-Byte String Functions" (
> http://jp2.php.net/manual/en/ref.mbstring.php ) to convert from one
encoding
> to another. Just experiment a bit... still if nothing works, perhaps, we
can
> try something again later...
>
> - E
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to