php charset problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KC

    php charset problem

    Hi,

    I have a web page contain Chinese characters (charset big5).
    If I name the page as mypage.html.big 5 or mypage.big5.htm l
    then the browser can identify the charset automatically.

    However, if I add "<?php echo <<<END ...mydoc here ... END; ?>"
    and name my page as mypage.php.big5 or mypage.big5.php ... well
    it doesn't work.

    How can I make php or Apache to understand file extension .php.big5
    or big5.php.

    Thanks
    KC

  • Malcolm Dew-Jones

    #2
    Re: php charset problem

    KC (kcc1967@gmail. com) wrote:
    : Hi,

    : I have a web page contain Chinese characters (charset big5).
    : If I name the page as mypage.html.big 5 or mypage.big5.htm l
    : then the browser can identify the charset automatically.

    : However, if I add "<?php echo <<<END ...mydoc here ... END; ?>"
    : and name my page as mypage.php.big5 or mypage.big5.php ... well
    : it doesn't work.

    : How can I make php or Apache to understand file extension .php.big5
    : or big5.php.

    Since that is a php script, I assume you could use the php "header"
    function to send the appropriate mime character set header.

    Comment

    Working...