in reply to Re: converting utf-8 to ISO-8859-1
in thread converting utf-8 (entities?) to ISO-8859-1
Assuming that the text data drawn from the database really is valid utf8, the "decode" call will set the utf8-flag, and then the regex substitution you showed will work fine.use Encode; # ... get database text into $text and then: $text = decode( 'utf8', $text );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: converting utf-8 to ISO-8859-1
by bart (Canon) on Apr 22, 2005 at 07:19 UTC |