Jump to content
php.lv forumi



Recommended Posts



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?

Link to comment
Share on other sites

datubāzes vai lapas čarsets?


Lapas charsets :)



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
$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';
   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 by ziedinjsh
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...