note 89222 added to function.header

From: Date: Thu, 26 Feb 2009 19:19:08 +0000
Subject: note 89222 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-151185@lists.php.net to get a copy of this message
I had problem with Chinese and Korean characters in web page not diplaying properly when viewed in konqueror. The page had LANG attribute in HTML tag and meta content-type defined like this (example is for Korean): <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ... but it did not make difference. The solution was sending these two header lines before outputting page content: header('Content-Type: text/html; charset=utf-8'); header("Content-Language: ko") ; It seems that the key is Content-Type header. Charset may or may not be set in php.ini and when it is set it might not be what you need (in this case utf-8). ---- Server IP: 216.235.13.26 Probable Submitter: 24.224.130.239 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/89222 Del: integrated -- https://master.php.net/note/delete/89222/integrated Del: useless -- https://master.php.net/note/delete/89222/useless Del: bad code -- https://master.php.net/note/delete/89222/bad+code Del: spam -- https://master.php.net/note/delete/89222/spam Del: non-english -- https://master.php.net/note/delete/89222/non-english Del: in docs -- https://master.php.net/note/delete/89222/in+docs Del: other reasons-- https://master.php.net/note/delete/89222 Reject -- https://master.php.net/note/reject/89222 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151185) next »