| encoding-source documentation | view source | Contained in the encoding-source distribution. |
encoding::source - allows you to write your script in non-ascii or non-utf8
use encoding::source 'utf8';
no encoding::source; # back to latin-1
{
use encoding::source 'utf8';
# ...
}
# back to latin-1
This pragma allows to change the default encoding for string literals in the current lexical compilation unit (block or file).
This is like the encoding pragma, but done right:
Encode, encoding
(c) Copyright 2007 by Rafael Garcia-Suarez.
Most test files are adapted from the tests of encoding,
maintained by Dan Kogai as part of the Encode distribution.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| encoding-source documentation | view source | Contained in the encoding-source distribution. |