0
嗨,我想知道什麼是在您的網頁上顯示變音符號的快速方法?我在想像下面的代碼,但我應該怎麼做僞代碼部分?如何在網頁中顯示變音符號?
$language = $_POST['language'];
if ($language = "fi") {
$filename = "C:/xampp/htdocs/finnish.txt";
} else if ($language = "eng") {
$filename = "C:/xampp/htdocs/english.txt";
} else if ($language = "swe") {
$filename = "C:/xampp/htdocs/swedish.txt";
} else if ($language = "rus") {
$filename = "C:/xampp/htdocs/russian.txt";
}
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize($filename));
fclose ($fd);
$delimiter = "*";
$splitcontents = explode($delimiter, $contents);
$counter = 0;
foreach($splitcontents as $titles[$counter]) {
//PSEUDO CODE
CONVERT_UMLAUTS_TO_VIEVABLE_FORM($titles[$counter]);
$counter = $counter + 1;
}
這與變音器有什麼關係?我們正在談論這些事情,對:ÖÜ? – nickf 2011-08-17 10:55:47
使用UTF-8,你不需要轉換任何東西。 – 2011-08-17 10:57:21