raimis58 Posted January 10, 2010 Report Share Posted January 10, 2010 Sveiki! man te radusies problēma ar garumzīmēm. Garumzīmju vietā rādās tādi kvadrātaini ķeburi. Iekš index.php faila ieliku <meta http-equiv="content-type" content="text/html; charset=utf-8" /> config.php failā ieliku: mysql_query("SET NAMES utf8")or die("Error 1"); mysql_query("SET CHARACTER SET utf8") or die("Error 2"); Failus saglabājot caur notepad++ uzliku format uz Encode UTF-8 without BOM Mājas lapas datubāzei iekš phpmyadmin uzliku utf8_latvian_ci Kas varetu būt pa problēmu? Quote Link to comment Share on other sites More sharing options...
zintis8789 Posted January 10, 2010 Report Share Posted January 10, 2010 mysql_query("SET NAMES UTF8 COLLATE utf8_general_ci"); Quote Link to comment Share on other sites More sharing options...
raimis58 Posted January 10, 2010 Author Report Share Posted January 10, 2010 Ieliku viņu iekš config.php faila! Bet diemžēl nekas nav mainījies, tie paši ķeburi vēlaizvien.. :( Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 10, 2010 Report Share Posted January 10, 2010 A tev pašā DB ir pareizs kodējums? Quote Link to comment Share on other sites More sharing options...
raimis58 Posted January 10, 2010 Author Report Share Posted January 10, 2010 Nu it ka ir uzlikt utf8_latvian_ci Quote Link to comment Share on other sites More sharing options...
raimis58 Posted January 10, 2010 Author Report Share Posted January 10, 2010 Varbut doctype'am ir kautkas nepareizi? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Quote Link to comment Share on other sites More sharing options...
mounkuls Posted January 10, 2010 Report Share Posted January 10, 2010 (edited) To datubāzi importēji no kautkurienes? Iespējams jau tad visu salaidi dēlī ja tā. Katrā ziņā to kas ir bāzē citā kodējumā, salabot varēsi tikai manuāli vai izlāižot caur kādu pašrakstītu skriptu ar repleisiem. Protams, ja vaina ir tur. DOCTYPE nav pie vainas, lai gan man liekas, ka XHTML vajadzēja arī xml deklarēt, vismaz lai mobilie to pazītu tā vajag. Edited January 10, 2010 by mounkuls Quote Link to comment Share on other sites More sharing options...
raimis58 Posted January 10, 2010 Author Report Share Posted January 10, 2010 nē, neesmu importējis. Quote Link to comment Share on other sites More sharing options...
2easy Posted January 10, 2010 Report Share Posted January 10, 2010 raimis58 = nice1? :D vai kā? hehe, viņš jau pats sākuma teicās, ka savā notepad++ visu ir salicis ;) 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.