Skip to content

Commit

Permalink
Default encoding UTF-8 (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
systemed authored Sep 20, 2024
1 parent 28d7e99 commit 4dc9a15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mbtiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ void MBTiles::openForWriting(string &filename) {
} catch(runtime_error &e) {
cout << "Couldn't write SQLite application_id (not fatal): " << e.what() << endl;
}
try {
db << "PRAGMA encoding = 'UTF-8';";
} catch(runtime_error &e) {
cout << "Couldn't set SQLite default encoding (not fatal): " << e.what() << endl;
}
try {
db << "PRAGMA journal_mode=OFF;";
} catch(runtime_error &e) {
Expand Down

0 comments on commit 4dc9a15

Please sign in to comment.