ziedinjsh Posted August 8, 2009 Report Share Posted August 8, 2009 Sveiki! Teikšu īsi- lapa ar 3 valodām LV RU EN latviešu charset - utf-8 русский cherset - windows-1251 english cherset - iso-8859-1 Latviešu valodai nav garumzīmju krievu valoda rādās ?????????? protams ar angļu valodu viss ir ok! paprovēju uz visām trim valodām lietot utf-8, bet bez izmaiņam! Kas varētu būt par lietu? Quote Link to comment Share on other sites More sharing options...
mickys Posted August 8, 2009 Report Share Posted August 8, 2009 datubāzes vai lapas čarsets? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted August 8, 2009 Author Report Share Posted August 8, 2009 (edited) datubāzes vai lapas čarsets? Lapas charsets :) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <?php $lv = '<img src="misc/lv.png">'; $ru = '<img src="misc/ru.png">'; $en = '<img src="misc/en.png">'; $languages = array( 'lv' => 'lv', 'ru' => 'ru', 'en' => 'en', ); if (isset($_GET['lang']) AND array_key_exists($_GET['lang'], $languages)) { include './lang/' . $languages[$_GET['lang']] . '.php'; } else { include './lang/latviesu.php'; } echo '<html lang="'.$lang['lang'].'">'; echo '<title>Prodeucers</title>'; echo '<head>'; echo '<link rel="icon" href="misc/favicon.ico" type="image/x-icon" />'; echo '<meta http-equiv="Content-Type" content="text/html charset='.$lang['charset'].' />'; echo '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />'; echo '<link rel="stylesheet" type="text/css" href="css/body.css" />'; echo '</head>'; Edited August 8, 2009 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
mefisto Posted August 8, 2009 Report Share Posted August 8, 2009 Visās valodās vajadzētu būt UTF8. Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted August 8, 2009 Author Report Share Posted August 8, 2009 (edited) nu jā, es jau mieģināju, bet nekādu rezultātu.. tas pats vien ir! Edited August 8, 2009 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
mefisto Posted August 8, 2009 Report Share Posted August 8, 2009 A kāds charset's ir datubāzei ? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted August 8, 2009 Author Report Share Posted August 8, 2009 šai lapai nav datubāzes. 3 php faili atsevšķās valodās Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted August 8, 2009 Author Report Share Posted August 8, 2009 atradu problēmu.. problēma bija notepad++ nesaglabāja utf-8 chersetā Quote Link to comment 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.