I'm adding MapInfo TAB files to SQLite (SpatiaLite) database using those arguments:
ogr2ogr -f "SQLite" dataset.sqlite somelayer.tab -dsco spatialite=yes
Source file somelayer.tab
have WindowsCyrillic
encoding defined:
!table
!version 450
!charset WindowsCyrillic
Definition Table
Type NATIVE Charset "WindowsCyrillic"
Fields 1
Name Char (100) ;
As a result, dataset.sqlite
have somelayer
table with VARCHAR Name
column.
But I need store Name
values in unicode.
How can I tell ogr2ogr
use unicode NVARCHAR
type for Name
column and encode text from WindowsCyrillic
(Windows-1251) to UTF-8
encoding for storing.