session_start() and utf-8

From: Date: Mon, 18 Nov 2002 11:00:18 +0000
Subject: session_start() and utf-8
Groups: php.general 
Request: Send a blank email to php-general+get-124890@lists.php.net to get a copy of this message
hi, i'm having a little problem with session_start() and utf-8 and i want just to figure out if this is a bug or just my incompetence. this is the code: <?PHP session_start();?> <html> <head> <title>TITLE</title> </head> <body> <?PHP //just to check if other function are working well echo phpversion(); ?> </body> </html> saving this little piece in ansi encoding everything is working just fine. BUT, saving this with enconding is set to UTF-8 the php-parser says: Warning: Cannot send session cookie - headers already sent by (output started at *:\*****\*****\*****\*****\check2.php:1) in *:\*****\*****\*****\*****\check2.php on line 1 Warning: Cannot send session cache limiter - headers already sent (output started at *:\*****\*****\*****\*****\check2.php:1) in *:\*****\*****\*****\*****\check2.php on line 1 the line "echo phpversion()" is working well with both encodings. i checked this with windows2000server, linux red-hat and unix operating systems, with apache and IIS webserver and with different php-versions including the 4.2.2. everytime there was the same warning message. it would be very nice if someone could tell me if i am doing something wrong or not and if (s)he is getting the same error. cheers, marco

« previous php.general (#124890) next »