Currently, U++uses MSVC to build applications, which can easily lead to garbled Chinese due to encoding format issues.
The temporary solution is as follows:
Step 1:
Open the 'Main package configuration' option to increase 'BUILD_ CHARSET' flag.
Step 2:
Find the file that defines' # pragma setlocation ('C ')' and modify it to:
Step 3:
Open the 'Package organizer' option to create a new 'Compiler options',and add compilation instructions '/source-charset:utf-8','/execution-charset:utf-8'.
Using MSVC to build applications will prevent the occurrence of Chinese garbled code. Of course, there are other bugs that have not been further tested yet.