lundi 2 mars 2015

ormlite change characters with question marks



I use of following query in ormlite with Mysql:



String _textSearch="%اعصاب%";
Where<QuestionEntity, Long> _where= getDao().queryBuilder()).where();

List<QuestionEntity> _lst= _where.or(_where.like("title",_textSearch ),
_where.like("questiontext", _textSearch)).query();


but generate following query:



SELECT * FROM `question`
WHERE (`title` LIKE '%?????%' OR `questiontext` LIKE '%?????%' )


why ?




Aucun commentaire:

Enregistrer un commentaire