SQLite database supporting Unicode data

前端 未结 3 841
迷失自我
迷失自我 2020-12-11 19:23

I\'m using java swing application which needs unicode string to drag into jtable.Is it possible to store unicode data in SQLITE database? If so,which SQLite does support uni

相关标签:
3条回答
  • 2020-12-11 19:45

    SQLite always uses Unicode strings.

    0 讨论(0)
  • 2020-12-11 19:45

    sqlite3 doesn't fully support UNICODE. There is a wrapper class called CppSQLite3 which fully supports UNICODE>

    0 讨论(0)
  • 2020-12-11 20:07

    SQLite always stores text data as Unicode, using the Unicode encoding specified when the database was created. The database driver itself takes care to return the data as the Unicode string in the encoding used by your language/platform.

    If you have conversion problems, either your application tried to store an ASCII string without converting it to Unicode, or you tried to read one value and force a conversion on it.

    SQLite uses a kind of dynamic typing, where each value is stored using a specific storage class. A column's type specifies the affinity or how the value is treated. For example:

    A column with NUMERIC affinity may contain values using all five storage classes. When text data is inserted into a NUMERIC column, the storage class of the text is converted to INTEGER or REAL

    There are five storage classes, NULL, INTEGER, REAL, TEXT, BLOB. TEXT stores string data using the Unicode encoding specified for the database (UTF-8, UTF-16BE or UTF-16LE).

    What specific problem are you facing, or is this a general question?

    0 讨论(0)
提交回复
热议问题