Always use UTF-8 for the GPX provider

git-svn-id: http://svn.osgeo.org/qgis/trunk@2955 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
larsl 2005-03-13 11:38:48 +00:00
parent dff7ae7c09
commit 4ecbd81a0c

View File

@ -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=") {