Miscellaneous
Miscellaneous other things.
Seconfig XP Other software Miscellaneous
Stats
  • Page visited 2446695 times
Page translation
Visitor locations
Other counters
  • ServiceUptime.com
  • on-line.lv
  Search Results  
Dāvis's tech blog - UTF-8 search with MySQL and PHP
A few minutes ago I helped a friend of mine to troubleshoot Unicode search in his web page. He was using a TEXT type field with utf8 encoding and search wasn't working properly. Also encoding of web page was UTF-8.
After a little research connection encoding turned out to be latin1. So a simple mysql_query("SET NAMES utf8"); before actual database queries solved his problem.
Posted on 2007.01.29. 00:24

Share |
© 2006-2012