I do not know how to properly set charset in session - polish language, I have something like this usuni�ty. Thank you in advance for your help
head file - list_photos_45.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php echo message(); ?>
</body>
</html>
file - delete.php
$_SESSION["message"] = "Ten produkt został usunięty.";
redirect_to("list_photos_45.php");
session
<?php
session_start();
header('Content-Type: text/html; charset=utf-8');
function message() {
if (isset($_SESSION["message"])) {
$output = "<div class=\"message\">";
$output .= htmlentities($_SESSION["message"]);
$output .= "</div>";
// clear message after use
$_SESSION["message"] = null;
return $output;
}
}
function errors() {
if (isset($_SESSION["errors"])) {
$errors = $_SESSION["errors"];
// clear message after use
$_SESSION["errors"] = null;
return $errors;
}
}
?>