Currently we do not specify an encoding when creating an .mbtiles file. We open the file using sqlite3_open16 (in sqlite_modern_cpp.h) which defaults to "UTF-16 in the native byte order". The mbtiles spec does not specify a preferred encoding in 1.0-1.2; in 1.3 it specifies UTF-8.
This PR explicitly sets newly created mbtiles to UTF-8.
Currently we do not specify an encoding when creating an .mbtiles file. We open the file using
sqlite3_open16
(in sqlite_modern_cpp.h) which defaults to "UTF-16 in the native byte order". The mbtiles spec does not specify a preferred encoding in 1.0-1.2; in 1.3 it specifies UTF-8.This PR explicitly sets newly created mbtiles to UTF-8.