vs Qt, running, Chinese characters appear garbled

method one:

// in front of the first file with the following lines of code 
#pragma execution_character_set ( "UTF-. 8")  

Method Two:

// directly before Chinese plus U8 
setWindowsTitle (U8 " System Configuration " );

 

Guess you like

Origin www.cnblogs.com/lyx5990/p/12094968.html