I have a big difficulty in using unicode with PHP. I created a php file with the following script and save as unicode format in notepad.
<?
session_start();
$HTTP_SESSION_VARS['language'] = "3";
echo $HTTP_SESSION_VARS['language'];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test2</title>
</head>
<body>
Testing
</body>
</html>
I run this with apache 2.0.3 and php 4.3, the following warning occurs: (** the word "Testing" will be replaced by Chinese letters, so that is why i really need to use unicode)
Warning: Cannot send session cookie - headers already sent by (output started at C:\myapache\wise_teacher\test1.php:1) in C:\myapache\wise_teacher\test1.php on line 2
Warning: Cannot send session cache limiter - headers already sent (output started at C:\myapache\wise_teacher\test1.php:1) in C:\myapache\wise_teacher\test1.php on line 2
3 Testing
Can somebody tell me what's wrong with this? How to avoid this problem? Million of thanks.