KillerBean Posted November 23, 2009 Report Share Posted November 23, 2009 Sveiki. Gribēju apjautāties, kā panākt to, lai meklējot kverijā LIKE 'A%' neatrastu arī vārdus, kas sākas ar Ķ, jo Ķ pēc ne-unicode sanāk A? btw. gan PHP, gan SQL tabula ir UTF-8. Quote Link to comment Share on other sites More sharing options...
edi Posted November 23, 2009 Report Share Posted November 23, 2009 varbūt pirms querty vajag mysql_query("SET NAMES 'utf8'") ? pamēgini... moš sanāk :D Quote Link to comment Share on other sites More sharing options...
lasko09 Posted November 23, 2009 Report Share Posted November 23, 2009 Cik esmu mēģinājis dažādus variantus visprecīzāk strādā šis: mysql_query("SET NAMES utf8"); mysql_query("SET CHARACTER SET utf8_latvian_ci"); 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.