Re: TextWiki and pound (£) signs

From: Date: Sun, 13 Nov 2005 03:09:54 +0000
Subject: Re: TextWiki and pound (£) signs
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21898@lists.php.net to get a copy of this message
On 11/12/05, Jocke Selin <the.joxor@gmail.com> wrote: > Hello, > > I've just discovered that my £-signs get converted to £ if I parse the text > through the Text Wiki class. Does anyone know how to prevent this? > > Code: > ------------- > <?php > $sText = "This //string// **contains** a pound £ sign."; > print($sText); > require_once("Text/Wiki.php"); > $oTextWiki =& new Text_Wiki(); > print($oTextWiki->transform($sText, 'Xhtml')); > ?> > ------------- > > Visual output > ------------- > This //string// **contains** a pound £ sign. > > This string contains a pound £ sign. > ------------- > > Source outputted: > -------------- > This //string// **contains** a pound £ sign.<p>This <em>string</em> > <strong>contains</strong> a pound &Acirc;&pound; sign.</p> > -------------- > This is likely because Text_Wiki uses the normal string functions instead of the multi-byte string functions. -- Justin Patrin

« previous php.pear.general (#21898) next »