2011/2/2 Shlomit Afgin <shlomit.af...@weizmann.ac.il>:
>
>
> Hello,
>
> I tried to convert html special characters to their real character.
> For example, converting    &#8221;      to     "   .
>
> I had the string
> $str = "&#8220; test &#8221; ניסיון ";
> The string contain also Hebrew letters.
>

Could Encode work on it?

use Encode;
$new = encode("iso-8859-1",decode("iso-8859-8",$str));

Regards.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to