Aidus Posted June 7, 2006 Report Share Posted June 7, 2006 (edited) Lietoju e107 cms un jaunākajā versijā saskāros ar kodēšanas problēmu. Tā kā neesmu nekāds php kodētājs tad esmu pilnīgā strupceļā, jo nezinu pat kurā vietā un aptuveni kas man jāmeklē lapas sourcē. mainot define("CHARSET", "lv_LV.UTF-8"); uz("CHARSET", "UTF-8"); ā un č sāk rādīt normāli toties aizpeld š un ž. Varbūt tas ir kautkāds tipisks errors es nezinu, tapēc prasu šeit varbūt kāds ko var palīdzēt. Piemērs iekš www.aidus.org Edited June 7, 2006 by Aidus Link to comment Share on other sites More sharing options...
[Ya] Posted June 7, 2006 Report Share Posted June 7, 2006 paskaties vai Mysql datubāzei ir izkārtojums utf8_general.ci Link to comment Share on other sites More sharing options...
Aidus Posted June 7, 2006 Author Report Share Posted June 7, 2006 (edited) Visur ir utf8_general_ci Nu jey bogu nesaprotu kas par shaizi. Pietam interesanti ka ieksh FF itkaa normaali bet ieksh IE nava English.php: setlocale(LC_ALL, 'lv_LV.UTF-8'); setlocale(LC_TIME, 'lv_LV.UTF-8'); define("CORE_LC", 'lv'); define("CORE_LC2", 'lv'); // define("TEXTDIRECTION","rtl"); define("CHARSET", "lv_LV.UTF-8"); // for a true multi-language site. :) Un biku SQL: DROP TABLE IF EXISTS `cms_core`; CREATE TABLE IF NOT EXISTS `cms_core` ( `e107_name` varchar(100) NOT NULL default '', `e107_value` text NOT NULL, PRIMARY KEY (`e107_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; charset", "lv_LV.UTF-8 maina uz UTF-8 nekaadu emociju Edited June 7, 2006 by Aidus Link to comment Share on other sites More sharing options...
v3rb0 Posted June 7, 2006 Report Share Posted June 7, 2006 (edited) ff automātiski izdomā ka lapa ir windows-1252 encodingā.. ar <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' /> vajadzētu pietikt. līdz šim man nekad nav vajadzējis lv_LV priekša kabināt. + pasties kādu encodingu m$ie rāda - baltic, nevis unikodu. Edited June 7, 2006 by v3rb0 Link to comment Share on other sites More sharing options...
Aidus Posted June 7, 2006 Author Report Share Posted June 7, 2006 IE rāda unicode(UTF-8) itkā viss kārtībā. a tas lv_LV vajag lai datumu pareizi lv rādītu. Link to comment Share on other sites More sharing options...
v3rb0 Posted June 7, 2006 Report Share Posted June 7, 2006 bet ne jau metatagā pie charset to lv_LV vajag. pie tam tagad bez lv_LV browseri detectē ka encodings ir utf8. Link to comment Share on other sites More sharing options...
Aidus Posted June 7, 2006 Author Report Share Posted June 7, 2006 Es saprastu ja visi burti šķērsām bet kapēc tieši ā un č ? vai arī š un ž kopā? Link to comment Share on other sites More sharing options...
Aidus Posted June 7, 2006 Author Report Share Posted June 7, 2006 Dīvaini bet kad iekš SQL collation nomainīju uz latin1_swedish_ci viss aizgāja. Ar ko tas būtu izskaidrojams? Link to comment Share on other sites More sharing options...
v3rb0 Posted June 7, 2006 Report Share Posted June 7, 2006 ar to ka tabulā dati glabājas latin1_swedish enkodingā. Link to comment Share on other sites More sharing options...
Recommended Posts