On Sun, Jun 19, 2022 at 12:55 AM ToddAndMargo via perl6-users
<perl6-us...@perl.org> wrote:

Hi All,

https://docs.raku.org/routine/encode

multi method encode(Str:D $encoding = 'utf8', :$replacement, Bool()
:$translate-nl = False, :$strict)

shows "ascii" and "utf8" as possible values for
"$encoding".

I tool a guess and found out "utf16".

Where are the rest of the values????  GGGGRRRRR!!!!

-T

On 6/19/22 01:55, William Michels via perl6-users wrote:
> Hi Todd,
>
> It's great that you've delved into the "encode" docs.
> However to answer your question, I think you want to look at the
> "encoding" routine page:
>
> https://docs.raku.org/routine/encoding#class_IO::Handle
>
> Here's the list on that page:
>
> utf8
> utf16
> utf16le
> utf16be
> utf8-c8
> iso-8859-1
> windows-1251
> windows-1252
> windows-932
> ascii
>
> HTH, Bill.
>
>


Yes that helps greatly.  Thank you!

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to