Re: TextWiki and pound (£) signs

From: Date: Mon, 14 Nov 2005 07:43:39 +0000
Subject: Re: TextWiki and pound (£) signs
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21903@lists.php.net to get a copy of this message
Bonjour, On Monday 14 November 2005 05:00, bertrand Gugger wrote: > Bonjour, > > Jocke Selin wrote: > >On Sunday 13 November 2005 03:09, Justin Patrin wrote: > >>On 11/12/05, Jocke Selin <the.joxor@gmail.com> wrote: > > It seems your script is saved in UTF8 (where £ is encoded on 2 bytes). > In this case, you need to configure the renderer to use it: > > $oTextWiki->setFormatConf('Xhtml', 'charset', 'UTF-8'); > > Then, the sterling will be correctly htmlentified. > > That will also be the case if you save you script in ISO which is the > default charset, so without needing the renderer conf. > > Anyway, the sterling within the anchors will never be entified, that's > not correct. > Please report a bug so we don't loose that. > a+ Bertrand, you are correct, UTF-8 is being used. Adding the setFormatConf line removed the character in front of the non-linked £-sign. And the £-sign within the link is also correct, but not turned into an entity. 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 &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 will file a bug. Merci! /Jocke

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