I'm using the TCPDF class / library and it works GREAT for my application until it hits a special character. We are using it to generate PDFs on the fly for one of our clients that does online surveys. They enter in some of the responses and questions through forms we built, copying and pasting from Word.
Well, the problem here is that it still has some apostrophes, right and left double quotes and mdashes in some of that text. So when we are sending that to the TCPDF function, it's failing to build the PDF and just displays all the HTML code on the screen.
I combed through their forums, but didn't find anything. This really is a coding question though. I tried htmlentities and htmlspecialchars and even building a function where I look for each of the things I previously mentioned and replace those w/ the appropriate keystroke equivalents.
Any ideas?