Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify sqlite database collation

I've worked with mysql and SQL server. But I'm getting an app made and my app guys don't seem to know much about sqlite.

Like SQL server and mysql, you can specify the collation of sqlite, right? I need my sqlite databases to be in utf-8 encoding so they can store special characters, Japanese, Chinese etc.

How do you do that? Through code, of course.

like image 912
Azfar Kashif Avatar asked Dec 14 '25 02:12

Azfar Kashif


1 Answers

SQLite uses UTF-8 by default.

Collations are used only to use different comparison algorithms.

like image 75
CL. Avatar answered Dec 16 '25 06:12

CL.