File tree Expand file tree Collapse file tree 6 files changed +4
-10
lines changed
VS_Snippets_CLR_System/system.Text.Encoding.ASCII Example/CPP
VS_Snippets_CLR/sys.txt.fallbackEncRpl/cpp
VS_Snippets_CLR_System/system.Text.Encoding.ASCII Example/CS
VS_Snippets_CLR/sys.txt.fallbackEncRpl/cs
VS_Snippets_CLR_System/system.Text.Encoding.ASCII Example/VB
VS_Snippets_CLR/sys.txt.fallbackEncRpl/vb Expand file tree Collapse file tree 6 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ int main()
33
33
int numberOfEncodedBytes = 0 ;
34
34
35
35
// ---------------------------------------------------------------------
36
- Console::Clear ();
37
-
38
- // Display the name of the encoding.
36
+ // Display the name of the encoding.
39
37
Console::WriteLine (" The name of the encoding is \" {0}\" .{1}" ,
40
38
ascii->WebName , Environment::NewLine);
41
39
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ int main()
49
49
This code produces the following output.
50
50
51
51
Original string:
52
- This unicode string contains two characters with codes outside the ASCII code range, Pi (ã ) and Sigma (ä ).
52
+ This unicode string contains two characters with codes outside the ASCII code range, Pi (Π ) and Sigma (Σ ).
53
53
54
54
Encoded bytes:
55
55
[84][104][105][115][32][117][110][105][99][111][100][101][32][115][116][114][105][110][103][32][99][111][110][116][97][105][110][115][32][116][119][111][32][99][104][97][114][97][99][116][101][114][115][32][119][105][116][104][32][99][111][100][101][115][32][111][117][116][115][105][100][101][32][116][104][101][32][65][83][67][73][73][32][99][111][100][101][32][114][97][110][103][101][44][32][80][105][32][40][63][41][32][97][110][100][32][83][105][103][109][97][32][40][63][41][46]
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ public static void Main()
36
36
int ix = 0 ;
37
37
38
38
// --------------------------------------------------------------------------
39
- Console . Clear ( ) ;
40
-
41
39
// Display the name of the encoding.
42
40
Console . WriteLine ( "The name of the encoding is \" {0}\" .\n " , ae . WebName ) ;
43
41
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public static void Main()
55
55
This code produces the following output.
56
56
57
57
Original string:
58
- This unicode string contains two characters with codes outside the ASCII code range, Pi (ã ) and Sigma (ä ).
58
+ This unicode string contains two characters with codes outside the ASCII code range, Pi (Π ) and Sigma (Σ ).
59
59
60
60
Encoded bytes:
61
61
[84][104][105][115][32][117][110][105][99][111][100][101][32][115][116][114][105][110][103][32][99][111][110][116][97][105][110][115][32][116][119][111][32][99][104][97][114][97][99][116][101][114][115][32][119][105][116][104][32][99][111][100][101][115][32][111][117][116][115][105][100][101][32][116][104][101][32][65][83][67][73][73][32][99][111][100][101][32][114][97][110][103][101][44][32][80][105][32][40][63][41][32][97][110][100][32][83][105][103][109][97][32][40][63][41][46]
Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ Class Sample
32
32
Dim encodedBytes(numberOfEncodedBytes - 1 ) As Byte
33
33
34
34
' --------------------------------------------------------------------------
35
- Console.Clear()
36
-
37
35
' Display the name of the encoding.
38
36
Console.WriteLine( "The name of the encoding is ""{0}""." & vbCrLf, ae.WebName)
39
37
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Class EncodingExample
40
40
End Class
41
41
'This code produces the following output.
42
42
'Original string:
43
- 'This unicode string contains two characters with codes outside ' the ASCII code range, Pi (ã ) and Sigma (ä ).
43
+ 'This unicode string contains two characters with codes outside the ASCII code range, Pi (Π ) and Sigma (Σ ).
44
44
'
45
45
'Encoded bytes:
46
46
'[84][104][105][115][32][117][110][105][99][111][100][101][32]'[115][116][114][105][110][103][32][99][111][110][116][97]'[105][110][115][32][116][119][111][32][99][104][97][114][97]'[99][116][101][114][115][32][119][105][116][104][32][99][111]'[100][101][115][32][111][117][116][115][105][100][101][32]'[116][104][101][32][65][83][67][73][73][32][99][111][100]'[101][32][114][97][110][103][101][44][32][80][105][32][40]'[63][41][32][97][110][100][32][83][105][103][109][97][32][40]'[63][41][46]
You can’t perform that action at this time.
0 commit comments