GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.raku.org — encoding | Raku Documentation This is an automatically generated page and cannot be edited directly. Text in Composite pages, (URLs starting with 'routine' or 'syntax') can be edited by clicking on the link labeled 'in context', and editing the text there. Exit this popup by pressing <Escape>, or clicking on X or on the background.
encoding
Combined from primary sources listed below.
In IO::CatHandle§See primary documentation in context for method encoding.
Raku highlighting
multi method encoding(IO::CatHandle:D:) multi method encoding(IO::CatHandle:D: $new-encoding) Sets the invocant's
Raku highlighting
(my $f1 = 'foo'.IO).spurt: 'I ♥ Raku'; (my $f2 = 'bar'.IO).spurt: 'meow'; with IO::CatHandle.new: $f1, $f2 { # .encoding is 'utf8' by default: .readchars(5).say; # OUTPUT: «I ♥ R» .encoding: Nil; # switch to binary mode .slurp.say; # OUTPUT: «Buf[uint8]:0x<6B 75 6D 65 6F 77>» } In IO::Handle§See primary documentation in context for method encoding.
Raku highlighting
multi method encoding(IO::Handle:D: --> Str:D) multi method encoding(IO::Handle:D: $enc --> Str:D) Returns a The accepted values for encoding are case-insensitive. The available encodings vary by implementation and backend. On Rakudo MoarVM the following are supported:
「text」 without highlighting
utf8 utf16 utf16le utf16be utf8-c8 iso-8859-1 windows-1251 windows-1252 windows-932 ascii The default encoding is utf8, which undergoes normalization into Unicode As of Rakudo 2018.04 windows-932 is also supported which is a variant of ShiftJIS. Implementation may choose to also provide support for aliases, e.g. Rakudo allows aliases |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |