Can powershell list the ascii codes and nonascii codes ?
Can powershell list the ascii codes and nonascii codes ?
Is this what you mean:
PS E:\> [int][char]"a"
97
PS E:\> [char[]]"some text" % {[int]$_}
115
111
109
101
32
116
101
120
116
PS E:\>
Or something else?
"IT Staff" wrote:
> Can powershell list the ascii codes and nonascii codes ?
>
>
>
> .
>
Do you mean this:
PS E:\> [int][char]"a"
97
PS E:\> [char[]]"some text" % {[int]$_}
115
111
109
101
32
116
101
120
116
or something else?
"IT Staff" wrote:
> Can powershell list the ascii codes and nonascii codes ?
>
>
>
> .
>
yes
"Rob Campbell" <RobCampbell@newsgroup> wrote in message
news11FE85CF2204B24BE6E9D296EAB1D6A@newsgroup
> Do you mean this:
>
> PS E:\> [int][char]"a"
> 97
>
> PS E:\> [char[]]"some text" % {[int]$_}
> 115
> 111
> 109
> 101
> 32
> 116
> 101
> 120
> 116
>
> or something else?
>
> "IT Staff" wrote:
>
>> Can powershell list the ascii codes and nonascii codes ?
>>
>>
>>
>> .
>>
az, AZ, 09, other characters like ~!@#, etc etc, inclusive of blank
space, is there a way of listing it ?
"Rob Campbell" <RobCampbell@newsgroup> wrote in message
news:5CE175EDD20B492E9B37619C6ED3A1F2@newsgroup
> Is this what you mean:
>
>
> PS E:\> [int][char]"a"
> 97
> PS E:\> [char[]]"some text" % {[int]$_}
> 115
> 111
> 109
> 101
> 32
> 116
> 101
> 120
> 116
> PS E:\>
>
> Or something else?
>
>
> "IT Staff" wrote:
>
>> Can powershell list the ascii codes and nonascii codes ?
>>
>>
>>
>> .
>>
Like this?
0..255 % {writehost "$($_) = $([char]$_)"}
"IT STAFF" wrote:
> az, AZ, 09, other characters like ~!@#, etc etc, inclusive of blank
> space, is there a way of listing it ?
>
>
>
>
> "Rob Campbell" <RobCampbell@newsgroup> wrote in message
> news:5CE175EDD20B492E9B37619C6ED3A1F2@newsgroup>
> > Is this what you mean:
> >
> >
> > PS E:\> [int][char]"a"
> > 97
> > PS E:\> [char[]]"some text" % {[int]$_}
> > 115
> > 111
> > 109
> > 101
> > 32
> > 116
> > 101
> > 120
> > 116
> > PS E:\>
> >
> > Or something else?
> >
> >
> > "IT Staff" wrote:
> >
> >> Can powershell list the ascii codes and nonascii codes ?
> >>
> >>
> >>
> >> .
> >>
> .
>
Sorry for the double reply. I couldn't get anything to update until just a
few minutes ago, and thought I'd closed the window without hitting Post on
the first one.
"IT STAFF" wrote:
> yes
>
> "Rob Campbell" <RobCampbell@newsgroup> wrote in message
> news11FE85CF2204B24BE6E9D296EAB1D6A@newsgroup>
> > Do you mean this:
> >
> > PS E:\> [int][char]"a"
> > 97
> >
> > PS E:\> [char[]]"some text" % {[int]$_}
> > 115
> > 111
> > 109
> > 101
> > 32
> > 116
> > 101
> > 120
> > 116
> >
> > or something else?
> >
> > "IT Staff" wrote:
> >
> >> Can powershell list the ascii codes and nonascii codes ?
> >>
> >>
> >>
> >> .
> >>
> .
>
