Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Bug #5953 £-sign doesn't get converted to £ in links
Submitted: 2005-11-14 07:42 UTC
From: jocke at selincite dot com Assigned: toggg
Status: Closed Package: Text_Wiki
PHP Version: 4.4.0 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-11-14 07:42 UTC] jocke at selincite dot com
Description: ------------ When using UTF-8 encoded PHP files and setting the appropriate setFormatConf the £-sign gets correctly encoded into £ if it doesn't exist within an a-tag. If the £-sign is within the a-tag then the sign is left untouched (which does display OK for me). Excellent package, thanks! Test script: --------------- <?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(); $oTextWiki->setFormatConf('Xhtml', 'charset', 'UTF-8'); print($oTextWiki->transform($sText, 'Xhtml')); ?> Expected result: ---------------- 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> Actual result: -------------- 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> Note the litteral £-sign in the link and the encoded (expected) £ outside the link.

Comments

 [2005-11-14 09:11 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-02-10 23:07 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!