sqlite3.exe Import csv File
(1) By Greg (gjroos) on 2022-09-20 18:18:08 [link] [source]
If I import a csv file using DB Browser for SQLite in Windows that contains Unicode such as below it replaces it with a replacement character � but if I import using sqlite3.exe it displays as BLOB viewing it using DB Browser for SQLite. When used in my Android app in a Listview the Unicode displays as a box but the ascii code displays normally. Is there a way to import a csv file using sqlite3.exe like how DB Browser for SQLite does? DB Browser uses UTF-8 but I am letting sqlite3.exe use the default in my VBScript.
Lincolnメs Farewell to Springfield
(2) By Larry Brasfield (larrybr) on 2022-09-20 19:19:08 in reply to 1 [link] [source]
When, in a sqlite3 session, I run this:
.import -csv stuff.csv MyStuff
, where the file named "stuff.csv" contains exactly this:
stuff
Lincolnメs Farewell to Springfield
, I get a table containing one row which contains the exact same UTF-8 as can be seen above as the 2nd line in "stuff.csv". This is working precisely as designed and documented.
Your issue is with DB Browser for SQLite. I can assure you that the sqlite3 shell is not going to have its .import behavior changed to do something which is obviously incorrect as you are describing.
(3) By Keith Medcalf (kmedcalf) on 2022-09-20 20:03:22 in reply to 1 [link] [source]
Define what you mean by "displays as BLOB"?
Do you mean that it displays ink-blot images to you to perform a psychological examination of you? What was the result?
Anything which displays a "replacement character" probably means that the font you are using does not contain the particular glyph requested, so it was replaced with a "replacement glyph" -- this is nothing to do with SQLite3.
(4) By Chris Locke (chrisjlocke1) on 2022-09-20 21:44:10 in reply to 3 [source]
The application 'DB Browser for SQLite' (as mentioned in the original post) shows the type of contents of a field - either the textual representation, or the italiced word, "BLOB" if the field contains binary data.