Re: regular expression for special html characters

2011-02-03 Thread John Delacour
At 18:52 +0800 03/02/2011, Jeff Pang wrote: 2011/2/2 Shlomit Afgin : > 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. Could E

Re: regular expression for special html characters

2011-02-03 Thread Shawn H Corey
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 war

Re: regular expression for special html characters

2011-02-03 Thread Jeff Pang
2011/2/2 Shlomit Afgin : > > > 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. > Could Encode work on it? use Encode; $new =