As already stated, this is not a problem of SQLite.

SQLite assumes all input to be correctly encoded in UTF (unicode), the precise 
flavor of which may be set (once, between creating a db file and the first 
insert) by a pragma.

If you insert ISO (latin) encoded strings, SQLite will faithfully reproduce the 
exact sequence of bytes presented on insert. As long as you use the same 
encoding to display the results, everything seems tob e ok, even though the 
byte sequence stored is technically worng.

If you insist on interpreting these using a different encoding and without 
explicitly converting, then you will experience problems with characters that 
encode differently.

-----Ursprüngliche Nachricht-----
Von: sqlite-users-boun...@mailinglists.sqlite.org 
[mailto:sqlite-users-boun...@mailinglists.sqlite.org] Im Auftrag von Wang, Wei
Gesendet: Dienstag, 07. Juni 2016 09:43
An: sqlite-users@mailinglists.sqlite.org
Betreff: [sqlite] Latin-1 characters cannot be supported for Unicode

Hi,

I met a problem that was maybe caused by the encoding of SQLite. I inserted a 
item which including some Latin1 characters like Ç and  Ã  into a table. Then I 
opened the database with SQLite Developer. After I setting the encoding to 
ANSI, the display and the query result for that table were OK.
However after I setting the encoding to Unicode, these Latin1 characters could 
not be displayed normally, and could not be queried out. Please see the 
attached pictures for the details.


Best Regards,
Wang Wei



___________________________________________
 Gunter Hick
Software Engineer
Scientific Games International GmbH
FN 157284 a, HG Wien
Klitschgasse 2-4, A-1130 Vienna, Austria
Tel: +43 1 80100 0
E-Mail: h...@scigames.at

This communication (including any attachments) is intended for the use of the 
intended recipient(s) only and may contain information that is confidential, 
privileged or legally protected. Any unauthorized use or dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please immediately notify the sender by return e-mail message and 
delete all copies of the original communication. Thank you for your cooperation.


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

Reply via email to