I am using ormlite for my application in android. I want to run a query with chinese string like
QueryBuilder<Hotel, Integer> qb = daoHotelObject.queryBuilder();
Where<Hotel,Integer> where=qb.where();
where.eq("hotel_name", pHotelName);
where.and();
where.between("hotel_avg_price", minRange,maxRange);
PreparedQuery<Hotel> pq = qb.prepare();
List<Hotel> serachListHotels = daoHotelObject.query(pq);
Where pHotelName is a Chinese string but the serachListHotels is empty.
This unit test works fine for me in ORMLite. It does something like the following:
This seems to be working fine. Is there anything that you are doing differently?