cordoprod Posted October 7, 2007 Share Posted October 7, 2007 Hi. I include my language file with PHP code. In firefox, when I include the page this  signs appears top of page. (http://www.cordoproduction.com) if you want to see. Here is my source of index.php: <?PHP $lang = $_GET['lang']; $page = $_GET['page']; if($lang == "") $lang = "nb"; include("./lang.$lang.php"); ?> <html> <head> <title><?PHP echo PAGE_TITLE; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="style.css" type="text/css" /> <style type="text/css"> <!-- body { background-color: #000066; margin-top: 5cm; } body,td,th { color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 11px; } --> </style></head> <body leftmargin="0" marginwidth="0"> <table width="562" border="0" align="center" cellpadding="0" cellspacing="0"> <tr valign="middle"> <td width="562"><img src="images/enter.jpg" width="562" height="180" border="0" usemap="#lang"></td> </tr> </table> <map name="lang"><area shape="rect" coords="27,123,144,160" href="index2.php?page=news&lang=nb" target="_self"> <area shape="rect" coords="177,124,330,159" href="index2.php?page=news&lang=en" target="_self"> <area shape="rect" coords="360,125,533,165" href="index2.php?page=news&lang=fr" target="_self"> </map></body> </html> And here is my language file code: <?PHP # misc define("PAGE_TITLE", "Offisiell side for Glenn Hovet"); define("COPYRIGHT", "© cordoproduction.com - Alle rettigheter er reservert - Design av <a href=\"mailto:glenn_875@hotmail.com\">Glenn Hovet</a>"); define("ERROR", "Feil"); define("ERROR_404_MSG", "Siden finnes ikke."); # meny define("HOVED", "nyheter"); define("BIO", "biografi"); define("KALENDER", "kalender"); define("BILDER", "bilder"); define("MM", "multimedia"); define("LINKER", "linker"); define("KONTAKT", "kontakt"); define("GJESTEBOK", "gb"); # biografi define("NAME", "Navn:"); define("DOB", "Fødseldato:"); define("DOB_2", "27 februar 1994, Kristiansand"); define("NICK", "Kallenavn:"); define("NATIONALITY", "Nasjonalitet:"); define("NATIONALITY_2", "Norsk"); define("HOBBIES", "Hobbyer:"); define("FAMILY", "Familie:"); define("FAMILY_2", "En far, en mor og to brødre"); define("HEIGHT", "Høyde:"); define("WEIGHT", "Vekt:"); define("FAV_MUSIC", "Favoritt musikk:"); define("FAV_MOVIE", "Favoritt film:"); define("FAV_FOOD", "Favoritt mat:"); define("FAV_DRINK", "Favoritt drikke:"); define("FAV_DRINK_2", "Eplejus"); define("MOTOCROSS_BIO", "Motocross biografi"); define("FIRST_MOTO", "Første løp:"); define("FIRST_MOTO_2", "Hekni, 2003, 9 år"); define("BEST_RESULT", "Beste resultat:"); define("FAV_CIRCUIT", "Favoritt bane:"); define("FAV_CIRCUIT_2", "Ingen spesiell"); # multimedia define("WALLPAPERS", "Bakrunnsbilder"); define("PICK_A_SIZE", "Vennligst velg en størrelse!"); define("COMING_SOON", "kommer senere"); define("FINSLAND_DRIVING", "Jeg kjører i Finsland (youtube)"); # linker define("RIDERS_AND_TEAMS", "Førere og team"); define("SHOPS", "Butikker"); define("MOTOCROSS_CLUBS", "Motocross klubber"); define("OTHER", "Annet"); # contact define("EMAIL", "E-post:"); define("SUBJECT", "Emne:"); define("MESSAGE", "Melding:"); define("CONTACT_MSG", "Meldingene blir sent til glenn[at]cordoproduction[dot]com"); define("MAIL_SENT", "Meldingen er sent."); ?> In IE it doesn't appear, just in Firefox. Please help. Quote Link to comment https://forums.phpfreaks.com/topic/72168-%C3%AF%C2%BB%C2%BF-signs-appear-top-of-page-when-i-include-my-language-file-in-firefox/ Share on other sites More sharing options...
haaglin Posted October 7, 2007 Share Posted October 7, 2007 It looks like the page is saved in utf-8, but displayed as ISO-8859-1. Try to open the file in a text editor as ISO-8859-1 and see if appears. Quote Link to comment https://forums.phpfreaks.com/topic/72168-%C3%AF%C2%BB%C2%BF-signs-appear-top-of-page-when-i-include-my-language-file-in-firefox/#findComment-363956 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.