systemed / tilemaker

Make OpenStreetMap vector tiles without the stack
https://tilemaker.org/
Other
1.44k stars 229 forks source link

Default encoding UTF-8 #742

Open systemed opened 4 weeks ago

systemed commented 4 weeks ago

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.