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>
commit04df8faecf2c0cfa7342cc7fefa072e6b02f2fd9
parent5f47b05daa5c35e7db858b6f89cc8f967e9d7a01
authorWang Yu <wangyu@uniontech.com>
committerWang Yu <wangyu@uniontech.com>
commit timeTue, 16 Jun 2026 03:41:38 +0000