briedis Posted November 19, 2009 Report Share Posted November 19, 2009 (edited) SELECT * FROM tabula WHERE vards LIKE '%Ā%' Atrod: MĀRTIŅŠ Neatrod: Mārtiņš ...kaut arī kolonnai uzstādīts utf8_latvian_ci, tas tiek vienkārši ignorēts... Ko darīt? Edited November 19, 2009 by briedis Quote Link to comment Share on other sites More sharing options...
briedis Posted November 20, 2009 Author Report Share Posted November 20, 2009 bump... Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted November 20, 2009 Report Share Posted November 20, 2009 Nu un ko atgriež, ja vēlreiz un īpaši norādi: SELECT * FROM tabula WHERE vards LIKE '%Ā%' COLLATE utf8_latvian_ci; Quote Link to comment Share on other sites More sharing options...
briedis Posted November 20, 2009 Author Report Share Posted November 20, 2009 "COLLATION 'utf8_latvian_ci' is not valid for CHARACTER SET 'latin1'" Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted November 20, 2009 Report Share Posted November 20, 2009 O! Un ja pirms tam izpilda: SET NAMES utf8 COLLATE utf8_latvian_ci Quote Link to comment Share on other sites More sharing options...
briedis Posted November 20, 2009 Author Report Share Posted November 20, 2009 (edited) COLLATION 'utf8_latvian_ci' is not valid for CHARACTER SET 'binary' :)) Līdz šim man ir bijis tā - ievadot/izvadot no lapas datus, visas garumzīmes rādās normāli, bet ja es skatos caur phpmyadmin, tad garumzīmes ir ķeburi. Piemēram, Mārtiņš - MÄrtiņš Edited November 20, 2009 by briedis Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted November 20, 2009 Report Share Posted November 20, 2009 Un kā izskatās: SHOW CREATE TABLE tabula; Quote Link to comment Share on other sites More sharing options...
briedis Posted November 20, 2009 Author Report Share Posted November 20, 2009 CREATE TABLE `tabula` ( [..] `vards` varchar(50) collate utf8_latvian_ci NOT NULL default '', ) ENGINE=MyISAM AUTO_INCREMENT=.. DEFAULT CHARSET=utf8 COLLATE=utf8_latvian_ci Quote Link to comment Share on other sites More sharing options...
Morphius Posted November 21, 2009 Report Share Posted November 21, 2009 A kāpēc nevar vienkārši izmantot utf8_general_ci kodējumu un visas augstāk minētās problēmas atkrīt? :) Quote Link to comment Share on other sites More sharing options...
briedis Posted November 21, 2009 Author Report Share Posted November 21, 2009 A kāpēc nevar vienkārši izmantot utf8_general_ci kodējumu un visas augstāk minētās problēmas atkrīt? :) Ja jau utf8_latvian_ci ir paredzēts latviešu valodai, tad kāpēc man jāņemt kkas cits? :) Es gribu atrast cēloni - kāpēc nestrādā tā, kā vajadzētu strādāt... :( Quote Link to comment Share on other sites More sharing options...
Morphius Posted November 22, 2009 Report Share Posted November 22, 2009 Sētā caurums arī daudz kam var būt noderīgs...Tu vienkārši pats sarežģī dzīvi...utf8_general manuprāt ir universālais kodējums, der gan LV, gan RU, gan vēl sazin kam citam. Un ja Tavā ražojumā kāds kaut ko ierakstīs RU valodā? Kas tad notiksies? 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.