On 11-02-02 04:25 AM, Shlomit Afgin wrote:
I tried to convert html special characters to their real character.
For example, converting” to " .
I had the string
$str = "“ test” ניסיון ";
The string contain also Hebrew letters.
This seems to work:
#!/usr/bin/perl
use strict;
use warnings;
use encoding( 'utf8' );
use HTML::Entities;
my $str = "“ test ” ניסיון ";
$str = decode_entities( $str );
print "$str\n";
__END__
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/