Hi,
I am getting error code 1017 when I search for a database field written in Arabic. I read similar topic with a solution of adding a language support from Bckendless team but the language was Russian.
Hi,
I am getting error code 1017 when I search for a database field written in Arabic. I read similar topic with a solution of adding a language support from Bckendless team but the language was Russian.
Hi @vladimir-upirov
Here my code in Kotlin:
Actually when I change “مهندس كهرباء” to any word in English on the database and the where clause everything works fine!
val whereClause = “speciality = مهندس كهرباء”
val queryBuilder = DataQueryBuilder.create()
queryBuilder .addProperties("objectId", "ownerId", "speciality")
queryBuilder .setPageSize(80)
queryBuilder .setOffset(0)
queryBuilder .whereClause = whereClause
Backendless.Data.of(Expert::class.java).find(queryBuilder ,
object: AsyncCallback<List<Expert?>?> {
override fun handleResponse(foundExperts: List<Expert?>?) {
if (foundExperts != null) {
Log.i("ExpertFound", foundExperts[0]?.speciality)
_numberOfExperts.value = foundExperts.size
}
}
override fun handleFault(fault: BackendlessFault) {
}
})
I just tried to find an object with the following value test = 'مهندس كهرباء'
and it works properly
try to wrap the Arabic string with single quotes
My pleasure, Sir!