Hi,@柏勳 陳.
Confirm that the console font supports Chinese characters:
Right-click on the console window title bar.
Select "Properties."
Go to the "Font" tab.
Choose a font that supports Chinese characters, such as "Consolas" or "SimSun."
If changing the font doesn't resolve the issue, you can try a different approach to read and display Chinese characters using the console:
Console.InputEncoding = Encoding.Unicode;
Console.OutputEncoding = Encoding.Unicode;
string name_1 = "派大星";
Console.Write("請輸入您的姓名 : ");
string name_2 = Console.ReadLine();
Console.WriteLine("name_1 is : " + name_1);
Console.WriteLine("name_2 is : " + name_2);
Console.ReadKey();
The result:
By the way, this is an English forum, please ask questions in English.
If the response is helpful, please click "Accept Answer" and upvote it.
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.