From 503d4eaea1ad6482c864b3c2cea4799b580f6638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Larra=C3=ADn?= Date: Tue, 31 May 2016 12:40:27 -0300 Subject: [PATCH] fix shapefiles encoding in demo for C++ Mapnik builds without `boost_regex_icu` (see #3440) and the C++ demo does not run: ``` /mapnik# demo/c++/rundemo `mapnik-config --prefix` running demo ... ### std::exception: could not create converter for latin1 ``` --- demo/c++/rundemo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/c++/rundemo.cpp b/demo/c++/rundemo.cpp index c30170694..c20c288cf 100644 --- a/demo/c++/rundemo.cpp +++ b/demo/c++/rundemo.cpp @@ -230,7 +230,7 @@ int main ( int, char** ) parameters p; p["type"]="shape"; p["file"]="demo/data/boundaries"; - p["encoding"]="latin1"; + p["encoding"]="utf8"; layer lyr("Provinces"); lyr.set_datasource(datasource_cache::instance().create(p)); @@ -295,7 +295,7 @@ int main ( int, char** ) parameters p; p["type"]="shape"; p["file"]="demo/data/popplaces"; - p["encoding"] = "latin1"; + p["encoding"] = "utf8"; layer lyr("Populated Places"); lyr.set_srs(srs_lcc); lyr.set_datasource(datasource_cache::instance().create(p));