mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Always use UTF-8 for the GPX provider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2955 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
d8856ec5b1
commit
864ce9fefc
@ -61,6 +61,9 @@ QgsGPXProvider::QgsGPXProvider(QString uri) : mDataSourceUri(uri),
|
|||||||
// assume that it won't work
|
// assume that it won't work
|
||||||
mValid = false;
|
mValid = false;
|
||||||
|
|
||||||
|
// we always use UTF-8
|
||||||
|
mEncoding = QTextCodec::codecForName("utf8");
|
||||||
|
|
||||||
// get the filename and the type parameter from the URI
|
// get the filename and the type parameter from the URI
|
||||||
int fileNameEnd = uri.find('?');
|
int fileNameEnd = uri.find('?');
|
||||||
if (fileNameEnd == -1 || uri.mid(fileNameEnd + 1, 5) != "type=") {
|
if (fileNameEnd == -1 || uri.mid(fileNameEnd + 1, 5) != "type=") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user