Mam problem z ustawieniem kodowania plikow na utf-8.
Zawartosc plikow wyglada nastepujaco:
index.php
<?php require_once('header.php'); ?> próba znaków<br /> ±æê³ñó¶¿¼<br /> ¡Æ£ÑÓ¦¯¬
header.php
<?php } require_once('config.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Language" content="pl" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>tytu³</title> </head> <body>
config.php
<?php } ?>
jak widac ustawione jest kodowanie na utf-8, pliki takze sa zakodowane programem w utf-8
po uruchomieniu wyswietla poprawnie polskie znaki, jednak wyswietla tez jakies bledy:
Kod
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 8
próba znaków
±æê³ñó¶¿¼
¡Æ£ÑÓ¦¯¬
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at c:\usr\apache\httpd\html\tmp\index.php:1) in c:\usr\apache\httpd\html\tmp\config.php on line 8
próba znaków
±æê³ñó¶¿¼
¡Æ£ÑÓ¦¯¬
co nalezy zmienic, aby tego nie bylo?
pozdrawiam i dziekuje za odpowiedzi