Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
identify results: consider plain/text wms response and gml attributes…
… as utf-8
  • Loading branch information
jef-n committed Feb 17, 2015
1 parent e748281 commit b087853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsidentifyresultsdialog.cpp
Expand Up @@ -741,11 +741,11 @@ void QgsIdentifyResultsDialog::addFeature( QgsRasterLayer *layer,
featItem->addChild( attrItem ); // before setHtml()!
if ( !attributes.isEmpty() )
{
attrItem->setContent( attributes.begin().value().toUtf8(), currentFormat == QgsRaster::IdentifyFormatHtml ? "text/html" : "text/plain" );
attrItem->setContent( attributes.begin().value().toUtf8(), currentFormat == QgsRaster::IdentifyFormatHtml ? "text/html" : "text/plain; charset=utf-8" );
}
else
{
attrItem->setContent( tr( "No attributes." ).toUtf8(), "text/plain" );
attrItem->setContent( tr( "No attributes." ).toUtf8(), "text/plain; charset=utf-8" );
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsgml.cpp
Expand Up @@ -614,7 +614,7 @@ QString QgsGml::readAttribute( const QString& attributeName, const XML_Char** at
{
if ( attributeName.compare( attr[i] ) == 0 )
{
return QString( attr[i+1] );
return QString::fromUtf8( attr[i+1] );
}
i += 2;
}
Expand Down

0 comments on commit b087853

Please sign in to comment.