Closed GoogleCodeExporter closed 8 years ago
Two questions:
1) What is the result of:
insert into tab_orders values(1, '2012-02-01', '001-', 'field4', 2000, '12',
'field7', 'field8', 0);
2) What is the exact error you are getting?
Thank you
Original comment by noah.hart@gmail.com
on 27 Mar 2012 at 12:32
[deleted comment]
string sql = insert into tab_orders
values(1,'2012-02-01','001-南京饭店','纯生啤',2000,'12瓶一箱','未到�
��','暂未到货',0);
string error = "";
int result = Sqlite3.sqlite3_exec(db_, sql, null, null, ref error);
--------------------------------------------------------------------------------
---
the return "result" is 1
the error is unrecognized token: "'12瓶一"
if I change sql to "insert into tab_orders
values(1,'2012-02-01','001-南京饭店','纯生啤',2000,'test1','test2','test3
',0)".
The result is Sqlite3.SQLITE_OK
Thank you
Original comment by wszjdn...@gmail.com
on 28 Mar 2012 at 1:42
Right, this is a UTF-8 problem, that just happened to work before. You need to
encode your multibyte characters into a blob before inserting.
I know others are doing this. Please ask on the user group.
http://groups.google.com/group/csharp-sqlite
Original comment by market.n...@gmail.com
on 28 Mar 2012 at 12:10
We have almost the same problem, no idea how to solve.
Original comment by meng.qin...@gmail.com
on 17 Jul 2012 at 6:47
Original issue reported on code.google.com by
wszjdn...@gmail.com
on 27 Mar 2012 at 1:43