私の言語ファイルは次のようなものです:
<?php
header('Content-Type: text/html; charset=windows-1255');
function heb($phrase){
static $lang = array(
'title' => 'ודים אילוף כלבים',
);
return $lang[$phrase];
}
?>
私のindex.phpファイルは次のようなものです:
<?php
include('langs.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
<title><?php echo heb('title'); ?></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
</body>
</html>
しかし、タイトルは「׳•׳“׳™׳ ׳׳™׳׳•׳£ ׳›׳׳'׳™׳」であり、ヘブライ語の単語ではありません。取得せずにヘブライ語で lang ファイルを編集するにはどうすればよいですか間違ったエンコーディング?