diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-20 23:07:20 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-20 23:07:20 +0000 |
commit | 6d1c0808b641926567cd16e07679f427c5fedc61 (patch) | |
tree | 7d5b650253957f1a030bf2596a5c9bc53c66f117 /ext/Encode/encoding.pm | |
parent | 369c54331343defe7bfb462cf8cd06563be74d1b (diff) | |
download | perl-6d1c0808b641926567cd16e07679f427c5fedc61.tar.gz |
Upgrade to Encode 1.52, from Dan Kogai.
p4raw-id: //depot/perl@16032
Diffstat (limited to 'ext/Encode/encoding.pm')
-rw-r--r-- | ext/Encode/encoding.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/Encode/encoding.pm b/ext/Encode/encoding.pm index a245ff41d1..6a66dfdf6e 100644 --- a/ext/Encode/encoding.pm +++ b/ext/Encode/encoding.pm @@ -1,5 +1,5 @@ package encoding; -our $VERSION = do { my @r = (q$Revision: 1.30 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; +our $VERSION = do { my @r = (q$Revision: 1.31 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; use Encode; use strict; @@ -93,17 +93,17 @@ encoding - allows you to write your script in non-ascii or non-utf8 # or you can even do this if your shell supports your native encoding perl -Mencoding=latin2 -e '...' # Feeling centrally European? - perl -Mencoding=euc-ko -e '...' # Korean + perl -Mencoding=euc-ko -e '...' # or from the shebang line #!/your/path/to/perl -Mencoding="8859-6" # Arabian Nights - #!/your/path/to/perl -Mencoding=euc-tw # Taiwanese + #!/your/path/to/perl -Mencoding=euc-tw # more control # A simple euc-cn => utf-8 converter - use encoding "euc-cn", STDOUT => "utf8"; while(<>){print}; # Chinese + use encoding "euc-cn", STDOUT => "utf8"; while(<>){print}; # "no encoding;" supported (but not scoped!) no encoding; |