sqlite database in persian language

前端 未结 2 1687
情书的邮戳
情书的邮戳 2021-01-13 10:20

I tried to create a sqlite database from a csv file. I did it as it is said in this page : using your own sqlite db in android and this : import csv to sqlite

but th

相关标签:
2条回答
  • 2021-01-13 10:29

    sqlite supports UTF-8, UTF-16 and this is quite enough to store arabic or persian.

    Most probably you get "_" because the import tool expects different charset than the charset of your original file.

    0 讨论(0)
  • 2021-01-13 10:44

    Persian/Farsi is not supported in Android up to version 4.0, but there are some things that might help you listed here.

    I also came across this stackoverflow question about Persian numbers in SQL, though I'm not sure that will help at all.

    I found a similar question to yours: C# - Does Sqlite database support persian/arabic encoding? and this seems to give an unfortunately negative answer:

    In short: No.

    SQLite support only a very, very limited number of encodings: UTF-8 and UTF-16 (multiple varieties).

    Fortunately, UTF-8 is perfectly suitable for expressing Arabic or Persian, or any other language (including Klingon, should the fancy grab you).

    It is posible, of course, that some other part of your toolchain is bungling the encoding, check the documentation for the C#.net SQLite wrapper, and your Forms code.

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