lupdate: Read .qrc files as UTF-8
Since Qt 6, rcc expects .qrc files to be in UTF-8 encoding.
QXmlStreamReader auto-detects encoding and defaults to UTF-8,
but lupdate was using QString::fromLocal8Bit() to read .qrc
file content, which uses the system locale encoding. This
causes non-ASCII file paths in .qrc files to be misinterpreted
on systems with non-UTF-8 locale.
Fix both .qrc reader code paths:
- projectprocessor.cpp: readFileContent() uses fromUtf8()
- projsongenerator.cpp: getResources() passes a new utf8 flag
to QMakeVfs::readFile(), which selects fromUtf8() for the
disk-reading branch. The .pro/.pri reader keeps its legacy
fromLocal8Bit() behavior.
Fixes: QTBUG-147360
Change-Id: I0742544acd2b23663f490fe26ecaf4d0e1c6e784
Reviewed-by: Masoud Jami <masoud.jami@qt.io>