changeset 118:db185340a981

utf8 collate try1
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 14 Mar 2010 20:16:04 +0900
parents f5d58cf2842f
children b172a0b1ea48
files Keyword.class.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Keyword.class.php	Sun Mar 14 16:31:50 2010 +0900
+++ b/Keyword.class.php	Sun Mar 14 20:16:04 2010 +0900
@@ -36,7 +36,7 @@
 				$options .= " AND CONCAT(title,description) REGEXP '".mysql_real_escape_string($keyword)."'";
 			}
 			else {
-				$options .= " AND CONCAT(title,description) like '%".mysql_real_escape_string($keyword)."%'";
+				$options .= " AND CONCAT(title,description) like _utf8'%".mysql_real_escape_string($keyword)."%' collate utf8_unicode_ci";
 			}
 		}
 		
@@ -163,4 +163,4 @@
 		parent::__destruct();
 	}
 }
-?>
\ No newline at end of file
+?>