We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34120
    • 236 Posts
    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);
      • 21560
      • 145 Posts
      Hello there, it’s been a while. Anyway, I’m sad to say that I have yet to find any other PDF generate script that can handle as many pages as Frozen Youth has. Most scripts run out of memory or processing time beyond 45-50 pages. The pdf on Nimja.com/Frozen-Youth has 449 pages... A LITTLE more. ^_^

      I’ve also modified the snippet to be a bit more flexible and allow for better calls. (will edit the original comment)
        [font=Times]Comics, stories, music, graphics, games and more! http://Nimja.com
      • 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!
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 21560
          • 145 Posts
          Special characters can always be annoying. PHP uses (usually) UTF8 encoding. There are some snippets of code on php.net that can help you translate your text properly...

          Glad to see people still use this though. smiley
            [font=Times]Comics, stories, music, graphics, games and more! http://Nimja.com
          • I still haven’t managed to get the £ symbol working... :’(
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 21560
              • 145 Posts
              You might find this useful: http://acko.net/node/56

              It’s a unicode variant of FPDF.
                [font=Times]Comics, stories, music, graphics, games and more! http://Nimja.com
                • 15076
                • 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
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 15076
                    • 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.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org