mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
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:
parent
dff7ae7c09
commit
4ecbd81a0c
@ -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=") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user