Re: TextWiki and pound (£) signs

From: Date: Sun, 13 Nov 2005 18:40:08 +0000
Subject: Re: TextWiki and pound (£) signs
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21901@lists.php.net to get a copy of this message
On 11/13/05, Jocke Selin <the.joxor@gmail.com> wrote: > On Sunday 13 November 2005 03:09, Justin Patrin wrote: > > On 11/12/05, Jocke Selin <the.joxor@gmail.com> wrote: > > > 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, I think you might be right. However, the £-sign is OK if it is in a > link. I did a new test and got these results: > > Code: > --- > <?php > $sText = "This //string// **contains** a pound £ sign. This link also > [http://example.com/ contains a £ sign] but this one is allright."; > print($sText); > require_once("Text/Wiki.php"); > $oTextWiki =& new Text_Wiki(); > print($oTextWiki->transform($sText, 'Xhtml')); > ?> > --- > > HTML output > --- > This //string// **contains** a pound £ sign. This link also > [http://example.com/ contains a £ sign] but this one is allright. > > This string contains a pound £ sign. This link also contains a £ sign but > this one is allright. > --- > > HTML Source > --- > This //string// **contains** a pound £ > sign. This link also [http://example.com/ contains a £ sign] but this > one is allright.<p>This <em>string</em> <strong>contains</strong> > a pound £ > sign. This link also <a href="http://example.com/" > onclick="window.open(this.href, '_blank'); return false;">contains a £ > sign</a> but this one is allright.</p> > --- > I'm sure it has to do with how the different rules handle the strings. -- Justin Patrin

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