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

0 comments on commit c47b2fb

Please sign in to comment.