[imp] multibyte charset bugs and iconv support hack in imp (3.1)

Viljo Viitanen vviitane+mail.imp@mappi.helsinki.fi
Fri Oct 25 23:47:44 2002


I wrote a moment ago:
> $text = str_replace(array('>', '<', '"', '&', "'"),array('&gt;', '&lt;',
> '&quot;', '&amp;', '&#039;') , $text);

Whoops. Make that

$text = str_replace(array('&', '<', '>', '"', "'"),array('&amp;', '&lt;',
'&gt;', '&quot;', '&#039;') , $text);

Sorry for the mixup. The & needs to be first in the list, otherwise the
&-chararcters from other entities get converted. Silly me :)


-- 
Viljo Viitanen