TextWiki and pound (£) signs
| From: | Jocke Selin | Date: | Sat, 12 Nov 2005 20:49:52 +0000 |
| Subject: | TextWiki and pound (£) signs | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21897@lists.php.net to get a copy of this message | ||
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 £ sign.</p>
--------------
Cheers,
/Jocke