Skip to content

Commit

Permalink
Merge pull request #43249 from qgis/fix-windows-form-macro-encoding
Browse files Browse the repository at this point in the history
[windows] Fix form macro encoding from file on windows
  • Loading branch information
elpaso committed May 17, 2021
2 parents 9c672f9 + 0968739 commit c47b2fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -1904,6 +1904,7 @@ void QgsAttributeForm::initPython()
{
// Read it into a string
QTextStream inf( inputFile );
inf.setCodec( "UTF-8" );
initCode = inf.readAll();
inputFile->close();
}
Expand Down

0 comments on commit c47b2fb

Please sign in to comment.