Quote from: rf9 at Nov 20, 2009, 04:38 PM
Quote from: rossco at Apr 20, 2009, 06:12 AM
Hi Susan, I’m typing in to the document body and saving and then downloading the PDF. As I said, I type £ and it comes out with that special character in front. I’m guessing that if I add  to be stripped won’t help as it appears to be happening during the PDF creation process.
Not sure if this has been resolved yet but I’m working on something similar and have solved it with the following:
$pound = '£';
$pound = utf8_decode($pound);
I missed this one! Where about did you paste those 2 lines? Hopefully this will work. Thanks!
I still haven’t managed to get the £ symbol working... :’(
-
- 43 Posts
I get the following error when using your files:
[tt]
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Function split() is deprecated
Error type/ Nr.: - 8192
File: C:\wamp\www\evo\manager\includes\document.parser.class.inc.php(770) : eval()’d code
Line: 33
Parser timing
MySQL: 0.0097 s (2 Requests)
PHP: 0.0915 s
Total: 0.1013 s
[/tt]
any clue what i am doing wrong?
You’re not doing anything wrong; the snippet was originally written in an older version of PHP, and now the split() function it uses is deprecated.
http://php.net/manual/en/function.split.php
-
- 43 Posts
thanks for the fast reply!
do you know which function is the replacement of the split function?
Depends on what you’re doing. See the documentation I linked to.