Encode

NAME

Encode - character encodings

SYNOPSIS

use Encode;
    say Encode::decode('latin2', Buf.new(0xa3));

DESCRIPTION

Available encodings:

  • utf-8 (utf8)

  • iso-8859-2 (latin2)

  • iso-8859-1 (latin1)

  • windows-1251 (cp-1251)

  • windows-1252 (cp-1252)

  • ascii

ROUTINES

routine decode

sub decode($encoding, Buf $buf) returns Str

Returns decoded $buf.

Throws X::Encode::Unknown exception if $encoding is not implemented.

AUTHOR

Filip Sergot (sergot) Website: filip.sergot.pl Contact: filip (at) sergot.pl

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.