Stanisław T. Findeisen wrote:
I mean this:
#!/usr/bin/perl
use warnings;
use strict;
# use utf8;
use Encode;
my $utf8_encoded = "smörgåsbord";
print('is_utf8: ' . (Encode::is_utf8($utf8_encoded) ? 'TRUE' : 'FALSE')
. "\n");
This outputs "FALSE" here, but uncomment "use utf8" and it gets "TRUE".
Looks like with "use utf8" those string literals aren't ordinary byte
strings anymore. Perhaps they are as if Encode::decode had been applied
to them?
Yes, it seems to be so. Please also see my reply to Chas.'s post.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/