Hi Shlomit,

On Thursday 03 Feb 2011 08:36:52 Shlomit Afgin wrote:
> Hello,
> 
> 
> 
> 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.
> 
> 
> 
> 1. first I did:
> 
> $str =  decode_entities($str);
> 
> It convert the special characters okay.
> 
> The problem is that the Hebrew came not okay.
> 
> So when I print the value of the $str I get the hebrew as  יסיון

Please look at http://perldoc.perl.org/Encode.html for how to overcome this 
issue.

Don't use a regex for it.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Freecell Solver - http://fc-solve.berlios.de/

Chuck Norris can make the statement "This statement is false" a true one.

Please reply to list if it's a mailing list post - http://shlom.in/reply .
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to