Hi, @abc abc
I'm afraid this can't be done. I tested to print
const char a = 'ê';
string b = "português";
in different unicode pages, and only the Portuguese version can be printed successfully.
In Windows, "MBCS" only refers to character encodings that can be used with the "A" versions of the Windows API functions.
For your reference: Difference between MBCS and UTF-8 on Windows.
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.