Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

persian/arabic search in sqlite android gives bad result

i have a problem with sqlite database. it seems to not support full persian/arabic characters. when i search some fields based on persian chars, most of the times Sqlite can't recognize those chars.

i insert data into database by copy them from HTML file. so when i type string and search, no result show. but if i copy string and search, it works.

The string from the HTML file is:

"احكام خمس"

The typed string is:

"احکام خمس"

like image 922
hojjat reyhane Avatar asked Mar 10 '14 08:03

hojjat reyhane


2 Answers

These strings are different.

The HTML string begins with the characters U+0627, U+062D, and U+0643 (Alef, Hah, and Kaf).

The third character of the typed string is not U+0643 but U+06A9 (Keheh).

like image 75
CL. Avatar answered Sep 24 '22 02:09

CL.


Sqlite is very simple supported persian/arabic.
read this link. sqlite database in persian language

like image 26
Amadas Avatar answered Sep 23 '22 02:09

Amadas