Skip to content

Commit

Permalink
[BUGFIX][QgsGmlSchema] Decode element name
Browse files Browse the repository at this point in the history
Good practice for the element name is to exclude accents but when GML is
 automatically generated attribut element name can have accent.

It's some time the case with GetFeatureInfo.
  • Loading branch information
rldhont committed Jan 20, 2015
1 parent 4786bd1 commit df79c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsgmlschema.cpp
Expand Up @@ -356,7 +356,7 @@ void QgsGmlSchema::startElement( const XML_Char* el, const XML_Char** attr )
Q_UNUSED( attr );
mLevel++;

QString elementName( el );
QString elementName = QString::fromUtf8( el );
QgsDebugMsgLevel( QString( "-> %1 %2 %3" ).arg( mLevel ).arg( elementName ).arg( mLevel >= mSkipLevel ? "skip" : "" ), 5 );

if ( mLevel >= mSkipLevel )
Expand Down Expand Up @@ -455,7 +455,7 @@ void QgsGmlSchema::startElement( const XML_Char* el, const XML_Char** attr )

void QgsGmlSchema::endElement( const XML_Char* el )
{
QString elementName( el );
QString elementName = QString::fromUtf8( el );
QgsDebugMsgLevel( QString( "<- %1 %2" ).arg( mLevel ).arg( elementName ), 5 );

if ( mLevel >= mSkipLevel )
Expand Down

0 comments on commit df79c2a

Please sign in to comment.