From 4ecbd81a0caca251dcd8d38191abde54b31b486a Mon Sep 17 00:00:00 2001 From: larsl Date: Sun, 13 Mar 2005 11:38:48 +0000 Subject: [PATCH] Always use UTF-8 for the GPX provider git-svn-id: http://svn.osgeo.org/qgis/trunk@2955 c8812cc2-4d05-0410-92ff-de0c093fc19c --- providers/gpx/qgsgpxprovider.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/gpx/qgsgpxprovider.cpp b/providers/gpx/qgsgpxprovider.cpp index 793dd185a9b..bdf5eba8a1c 100644 --- a/providers/gpx/qgsgpxprovider.cpp +++ b/providers/gpx/qgsgpxprovider.cpp @@ -61,6 +61,9 @@ QgsGPXProvider::QgsGPXProvider(QString uri) : mDataSourceUri(uri), // assume that it won't work mValid = false; + // we always use UTF-8 + mEncoding = QTextCodec::codecForName("utf8"); + // get the filename and the type parameter from the URI int fileNameEnd = uri.find('?'); if (fileNameEnd == -1 || uri.mid(fileNameEnd + 1, 5) != "type=") {