bubu Posted January 12, 2007 Report Share Posted January 12, 2007 Varbūt: mysql_query("SET NAMES utf-8") or die(mysql_error()); Link to comment Share on other sites More sharing options...
Joyride Posted January 12, 2007 Report Share Posted January 12, 2007 andrisp => Nestrīdos, bet pamainīju un viss sāka strādāt lieliski, tātad kaut kāda saistība ar to ir. Link to comment Share on other sites More sharing options...
ntw Posted January 12, 2007 Author Report Share Posted January 12, 2007 (edited) Client API version 3.23.49 Grey wold man ir konfig fails, kurā arī glabāju db konektēšanos...kam vajadzētu būt tikai loģiski, un tieši zem datubāzes izvēles ies ieliku set neimus - Nestrādā.... bubu - good point ;) P.S. Jums forumā uz quik edit arī tādas pašas jautājumzīmītes ;) , derētu takā salabot ;) Edit2: WTF? mysql_error(): Unknown character set: 'utf' Nafig viš neatpazīst tādu setu nemaz :D... Tad jau gan jau kad likšu uz īstā hosta atpazīs.... ( cifngiā rakstīju utf-8 nevis prosta utf ) Edited January 12, 2007 by nTw Link to comment Share on other sites More sharing options...
bubu Posted January 12, 2007 Report Share Posted January 12, 2007 Būtu rtfm izdarījis, tad sen jau atrastu atbildi (Nu cik slinki var būt cilvēki...) http://dev.mysql.com/doc/refman/5.0/en/cha...connection.html SET NAMES 'utf-8'; Link to comment Share on other sites More sharing options...
Roze Posted January 12, 2007 Report Share Posted January 12, 2007 Ir character sets 'utf8' nevis 'utf-8' .. mysql> set names 'utf-8'; ERROR 1115 (42000): Unknown character set: 'utf-8' mysql> set names 'utf8'; Query OK, 0 rows affected (0.00 sec) .. līdz ar to puse no postiem ir cepšanās neparko :) Link to comment Share on other sites More sharing options...
bubu Posted January 12, 2007 Report Share Posted January 12, 2007 Ok, mana kļūda. Visu manuāli gribēt zināt no galvas ir grūti :) Link to comment Share on other sites More sharing options...
Roze Posted January 12, 2007 Report Share Posted January 12, 2007 Nu es visiem mysql sterveriem iekš my.cnf iebakstu character-set-server=utf8 un palaižu --skip-character-set-client-handshake Atkrīt lieks kverijs pēc katras konekcijas .. Link to comment Share on other sites More sharing options...
Recommended Posts