reiniger Posted July 1, 2010 Report Share Posted July 1, 2010 (edited) 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 July 1, 2010 by reiniger Quote Link to comment Share on other sites More sharing options...
Valis Posted July 1, 2010 Report Share Posted July 1, 2010 header( 'Content-Type: text/html; charset=UTF-8' ); Quote Link to comment Share on other sites More sharing options...
reiniger Posted July 1, 2010 Author Report Share Posted July 1, 2010 header( 'Content-Type: text/html; charset=UTF-8' ); vienalga ka definets mainigais viņš kaut kur pazud... problema ir atrisinata un nava īpaši aktuala, bet vienalga interesanta lietiņa... Quote Link to comment Share on other sites More sharing options...
Cibiņš Posted July 1, 2010 Report Share Posted July 1, 2010 (edited) 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 July 1, 2010 by Cibiņš Quote Link to comment Share on other sites More sharing options...
mefisto Posted July 1, 2010 Report Share Posted July 1, 2010 Cibiņš, lūdzu beidz izlikties par programētāju. 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.