On 3/18/2011 12:27 AM, ashish yadav wrote:
> My application is using UTF-8 strings ie  database contain UTF-8 strings.
> For sorting requirement of application ,i use ICU  which is integrated with
> sqlite3.
>
> Now ICU support UTF-16 encode string for its operation.
>
> Can any one please tell me how to deal with this situation ?
> If ICU/Sqlite3  by default   take care of this ?

Yes. When a custom collation is registered, it may indicate whether it 
wants its strings in UTF-8, UTF-16 or either. SQLite will automatically 
convert all strings to the form the collation wants, before calling it.

Bottom line, SQLite and ICU will settle the matter between themselves. 
You don't need to do anything special.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to