Perl 5 has the encoding pragma or the Filter::Encoding module, however, I have not found anything similar in Perl 6. I guess eventually source filters will be created, but for the time being, can you use other encodings in Perl 6 scripts?
I can't find bytearray method or similar in Perl 6 doc as in Python. In Python, the bytearray defined as this:
What is the default encoding used for encoding strings in python 2.x? I've read that there are two possible ways to declare a string.