Blumish Posted February 14, 2011 Report Share Posted February 14, 2011 Sveiki!.. Dabuju interneta kodu php kodu, bet vardi tur ieksa ir rakstiti krievu valodā, kad atveru ar notepad++ izkatās šādi: <? if (!isset($act) or $act=="rubr") { echo " <span class='nav'>ïåðåéòè ê ðóáðèêàì'>Ðóáðèêè</span>"; } else { echo " <a class='nav' href='index.php?act=rubr' title='ïåðåéòè ê ðóáðèêàì'>Ðóáðèêè</a>"; } if ($act=="posl") { echo " <span class='nav'>Ïîñëåäíèå îáúÿâëåíèÿ</span>"; } else { echo " <a class='nav' href='index.php?act=posl' title='htht'>ïåðåéòè ê ðóáðèêàì'>Ðóáðèêè</a>"; } if (isset($_SESSION['ses_user']) && isset($_SESSION['pass'])) { echo " <a class='nav' href='index.php?act=pod"; if (isset($cat_id) && !empty($cat_id)) {echo "&cat_id=".$cat_id;} echo"' title='Ïîäàòü îáúÿâëåíèå'>Ïîäàòü îáúÿâëåíèå</a>"; } else { echo " <a class='nav' href='index.php?act=login&acton=pod"; if (isset($cat_id) && !empty($cat_id)) {echo "&cat_id=".$cat_id;} echo "' title='Âîéäèòå â ñèñòåìó äëÿ ïîäà÷è îáúÿâëåíèÿ'>Ïîäàòü îáúÿâëåíèå</a>"; } ?> Vai ir kāda iespēja šos ķeburus (ïåðåéòè ê ðóáðèêàì'>Ðóáðèêè) atkodēt un uzzināt kas tas ir par krievu vārdu. Paldies Quote Link to comment Share on other sites More sharing options...
daGrevis Posted February 14, 2011 Report Share Posted February 14, 2011 (edited) Pamēģini pirms koda "ie'paste'ošanas" nomainīt "Encoding" pašā "editor'ā" (piemēram, Notepad++). =] Edited February 14, 2011 by daGrevis Quote Link to comment Share on other sites More sharing options...
nikidijs Posted February 14, 2011 Report Share Posted February 14, 2011 (edited) Nu ja tev tāda figņa ir ar ANSI formātā saglabātiem skriptiem, tad atverot ar notepad++ augšpusē - Encoding -> Character sets -> Cyrilic -> Windows-1251. Man vismaz parādijās teksts krievu valodā P.S. Pēctam encoding -> Convert to UTF-8 without bom. Un var glabāt :) Edited February 14, 2011 by nikidijs Quote Link to comment Share on other sites More sharing options...
Blumish Posted February 14, 2011 Author Report Share Posted February 14, 2011 Nu ja tev tāda figņa ir ar ANSI formātā saglabātiem skriptiem, tad atverot ar notepad++ augšpusē - Encoding -> Character sets -> Cyrilic -> Windows-1251. Man vismaz parādijās teksts krievu valodā P.S. Pēctam encoding -> Convert to UTF-8 without bom. Un var glabāt :) Super sanāca :) Paldies Quote Link to comment Share on other sites More sharing options...
Blumish Posted February 14, 2011 Author Report Share Posted February 14, 2011 hmm pashaa kodaa paradiijaas krievu valoda, bet lapaa nea... uzliek utf-8 vispaar paradiijas kkaadi heroglifi Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted February 14, 2011 Report Share Posted February 14, 2011 Pēc tam, kad kodā parādās, pārseivo to visu kā UTF-8 (bez BOM). Quote Link to comment Share on other sites More sharing options...
Blumish Posted February 14, 2011 Author Report Share Posted February 14, 2011 Pēc tam, kad kodā parādās, pārseivo to visu kā UTF-8 (bez BOM). lapā uzreiz teksta vietā rādās šādi: Подать Quote Link to comment Share on other sites More sharing options...
nikidijs Posted February 14, 2011 Report Share Posted February 14, 2011 iekš <head> un </head> tagiem ir šis <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> ? Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 14, 2011 Report Share Posted February 14, 2011 Nu ja tev tāda figņa ir ar ANSI formātā saglabātiem skriptiem, tad atverot ar notepad++ augšpusē - Encoding -> Character sets -> Cyrilic -> Windows-1251. Man vismaz parādijās teksts krievu valodā ne vienmer :( Krievu val[Cyrlic] var buut vairaki Encodingi .. (vismaz 3 varjanti) Quote Link to comment Share on other sites More sharing options...
nikidijs Posted February 14, 2011 Report Share Posted February 14, 2011 ne vienmer :( Krievu val[Cyrlic] var buut vairaki Encodingi .. (vismaz 3 varjanti) Iegaumēsim. Vnk citu veidotajos skriptos esmu manijis ka izmanto šo. Pats tā īpaši pētijis neesmu. Bet paldies par info :) Quote Link to comment Share on other sites More sharing options...
briedis Posted February 14, 2011 Report Share Posted February 14, 2011 Nedrīkst tāpat vien pārseivot uz UTF-8, vispirms ir jāpākonvertē uz to UTF-8 (notepad++ to piedāvā). Quote Link to comment Share on other sites More sharing options...
nikidijs Posted February 14, 2011 Report Share Posted February 14, 2011 Nuja, tā ar daru, un šī topa manā pirmajā postā jaunskungam dotais variants to arī iekļauj :) Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 14, 2011 Report Share Posted February 14, 2011 (edited) Vnk citu veidotajos skriptos esmu manijis ka izmanto šo. Pats tā īpaši pētijis neesmu. paskaties cik varjantus piedavaa brauzeri ;) krievu 5 /neskaitot ukrainju etc / (reali dzive izmanto [webam] 3 ) P.S. runaju par cyrlic .. Edited February 14, 2011 by Grey_Wolf 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.