Created
January 23, 2012 18:18
-
-
Save MaximeD/1664630 to your computer and use it in GitHub Desktop.
encoding testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use warnings; | |
use strict; | |
use utf8; | |
# Try with and without the folowing | |
binmode(STDOUT, ":utf8"); | |
use Cwd; | |
chdir $ARGV[0]; | |
print cwd() . "\n"; | |
print "Des caractères accentués !\n"; |
(j'ai viré le chdir(), je vois pas bienc e qu'il foutait là)
uncommented
kik@central ~/tmp/flash/éàù $ ./test.pl
/home/kik/tmp/flash/éà ù
Des caractères accentués !
commented
kik@central ~/tmp/flash/éàù $ ./test.pl
/home/kik/tmp/flash/éàù
Des caractères accentués !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ah euh, faut ptet que j'utilise un nom de dossier avec caractère non ascii :P