File tree 1 file changed +6
-13
lines changed 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,17 @@ $enc_winX.GetEncoding()|Ft
11
11
12
12
13
13
14
- $Rune = ' ë'
14
+ $Rune = ' ë '
15
15
# return an object of before and after encoding the character for ervery encoding
16
16
17
17
18
18
# $_ -is [EncodingInfo]
19
19
# $curEnc -is [Encoding]
20
20
$query = $enc_winX.ForEach ({
21
21
$curEnc = $_.GetEncoding ()
22
-
23
-
24
22
$Bytes = $curEnc.GetBytes ( $Rune )
25
23
26
- $info = [ordered ]@ {
24
+ $info = [ordered ]@ {
27
25
Enc_Codepage = $_.CodePage
28
26
Enc_Name = $_.Name
29
27
Enc_Display = $_.DisplayName
@@ -32,16 +30,11 @@ $query = $enc_winX.ForEach({
32
30
| Join-String -f ' {0:x}' - sep ' '
33
31
34
32
Before = $Rune
33
+ Enc_TypeName = $curEnc.GetType ().FullName
35
34
}
36
35
37
-
38
-
39
- # Enc_ = $encCur.CodePage
40
- # Enc_Type = $encCur.GetType().fullname
41
-
42
-
43
-
44
- # }
36
+ [pscustomobject ]$info
45
37
})
46
38
47
- $query | Ft - auto
39
+ $query
40
+ | Ft - auto
You can’t perform that action at this time.
0 commit comments