스웨덴어를 MysQL 데이터베이스에 저장했습니다. 테이블의 인코딩 나는 또한 내가 데이터베이스에서 검색을하고있을 때, 'A'를 MySQL - 스웨덴어 문자 검색
utf8_swedish_ci
을 시도하고 동일하게 처리하는 'A'
utf8_unicode_ci
입니다. 따라서 결과에는 a와 ä로 시작하는 단어가 모두 포함됩니다. 이는 사실입니다. 내 응용 프로그램 CakePHP를 개발하고 난 여기 아무것도 실종
Configure::write('App.encoding', 'UTF-8');
내 core.php에 다음 있나요?
$term = $this->request->query['term'];
$this->loadModel('Words');
$condition = array('word LIKE' => trim($term) . '%', 'is_active' => true);
$words = $this->Words->find('list', array(
'fields' => array('word'),
'limit' => 7,
'conditions' => $condition));
return $this->respond($words, true);
나는 JQuery와 자동 완성에 사용 :
$(function() {
$("#tags").autocomplete({
source: 'autocomplete'
});
});
검색어를 표시 할 수 있습니까? – Mihai
게시물에 추가했습니다. –
http://stackoverflow.com/questions/2607130/mysql-treats-%C3%85%C3%84%C3%96-as-aao – Mihai