Skip to content

Commit 18b307b

Browse files
committed
fix UTF-8 encoding
1 parent 795d9ff commit 18b307b

File tree

612 files changed

+1683
-1682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

612 files changed

+1683
-1682
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ project.lock.json
5959
project.fragment.lock.json
6060
artifacts/
6161

62+
*.exe
6263
*_i.c
6364
*_p.c
6465
*_i.h
-229 Bytes
Binary file not shown.

Utilities/UpdateCsProj.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$root = "C:\src\Intellitect\EssentialCSharp\src"
1+
$root = "C:\src\Intellitect\EssentialCSharp\src"
22

33

44

Utilities/Write-PSObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Downloaded from https://gallery.technet.microsoft.com/scriptcenter/Format-Table-Colors-in-e0a4beac.
1+
# Downloaded from https://gallery.technet.microsoft.com/scriptcenter/Format-Table-Colors-in-e0a4beac.
22

33
## Code Type: Function
44
## Decription: Write the output of PSObjects with formatted defined colors with two ways.

src/Chapter01.Tests/Chapter01.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<ChapterNumber>01</ChapterNumber>
44
</PropertyGroup>

src/Chapter01.Tests/Tests.cs.backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.IO;
33

44
namespace Chapter01.Tests
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter01.Listing01_08;
22

33
#region INCLUDE
4-
public class Program // 类定义的开始
4+
public class Program // 类定义的开始
55
{
6-
public static void Main() // 方法声明
7-
{ // 方法实现的开始
8-
Console.WriteLine( // 此语句跨越两行
9-
"你好,我叫Inigo Montoya。");
10-
} // 方法实现的结束
11-
} // 类定义的结束
6+
public static void Main() // 方法声明
7+
{ // 方法实现的开始
8+
Console.WriteLine( // 此语句跨越两行
9+
"你好,我叫Inigo Montoya。");
10+
} // 方法实现的结束
11+
} // 类定义的结束
1212

1313
#endregion INCLUDE

src/Chapter01/Listing01.12.DeclaringAndAssigningAVariable.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ public class MiracleMax
55
{
66
public static void Main()
77
{
8-
string max; // “string”标识数据类型,
9-
// “max”是变量名称。
10-
max = "愉快地袭击古堡吧!";
8+
string max; // “string”标识数据类型,
9+
// “max”是变量名称。
10+
max = "愉快地袭击古堡吧!";
1111
Console.WriteLine(max);
1212
}
1313
}

src/Chapter01/Listing01.17.UsingSystemConsoleRead.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ public static void Main()
66
{
77
int readValue;
88
char character;
9-
Console.Write("随意输入,按Enter键结束:");
9+
Console.Write("随意输入,按Enter键结束:");
1010

1111
while (true)
1212
{
1313
readValue = Console.Read();
14-
if (readValue == 13) break; // 13是Enter键的编码
14+
if (readValue == 13) break; // 13是Enter键的编码
1515
character = (char)readValue;
1616
Console.Write(character);
1717
}

src/Chapter01/Listing01.21.CommentingYourCode.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ public class CommentSamples
55
{
66
public static void Main()
77
{
8-
string firstName; // 用于存储名字的变量
9-
string lastName; // 用于存储姓氏的变量
8+
string firstName; // 用于存储名字的变量
9+
string lastName; // 用于存储姓氏的变量
1010

11-
Console.WriteLine("嘿,你!");
11+
Console.WriteLine("嘿,你!");
1212

13-
Console.Write /* 不换行 */ ("请输入你的名字: ");
13+
Console.Write /* 不换行 */ ("请输入你的名字: ");
1414
firstName = Console.ReadLine();
1515

16-
Console.Write /* 不换行 */ ("请输入你的姓氏: ");
16+
Console.Write /* 不换行 */ ("请输入你的姓氏: ");
1717
lastName = Console.ReadLine();
1818

19-
/* 使用字符串插值在控制台上显示问候语*/
20-
Console.WriteLine($"你的全名是{firstName} {lastName}。");
21-
// 程序清单结尾
19+
/* 使用字符串插值在控制台上显示问候语*/
20+
Console.WriteLine($"你的全名是{firstName} {lastName}。");
21+
// 程序清单结尾
2222
}
2323
}
2424
#endregion INCLUDE

0 commit comments

Comments
 (0)