error: source file is not valid UTF-8

I’ve got the same problem here, with my own sources. (No QT, and no cmake either, so it’s not the culprit!)
This is a MacOS15 VM within VMware on a Windows 11 hosts. All updates done on both sides.
Apple clang version 16.0.0
Did you find a workaround?