Jump to content
php.lv forumi

Krievu burti pazūd...


reiniger

Recommended Posts

Lapa ir divās valodās latviešu un krievu.

 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 

 

Nebija mans darbs un bija caur define mainīgajiem.

<h1><?=mail?></h1>
<p><?=kaut_kas?></p>

 

It kā viss strāda ok bet ik pa laikam е-почте vieta paradas ?????????, bet $kaut_kas rādas pareizi krievu valodā. Teiksim ta ka no 15 refresh lapai 3 reizes neatēlojas krievu valoda, bet gan jautajuma zīmes.

 

 

uz kādu es izlaboju un tagad strādā.

valoda mainas ar mainigajiem

if($lang == 'lv') { $mail='e-pasts'; $kaut_kas = 'kaut kas'; } else { $mail=' е-почте'; $kaut_kas = 'силу'; } 

 

html kodiņš

<h1><?=$mail?></h1>
<p><?=$kaut_kas?></p>

 

Iespējams kaut kas ar faila iesaukšanu nebija kārtība.

Edited by reiniger
Link to comment
Share on other sites

INDEX.HTML vai INDEX.PHP failaa jaabut shaadam tad man nekad nau bijushas probleemas.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Lapasnosaukums</title>
//Te ir javaskripti utt
</head>

<body>
//Te ir parejie kodi
</body>
</html>

Edited by Cibiņš
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.

Guest
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.

Loading...
×
×
  • Create New...