PHP: Textile giving me single quotes instead of apostrophes
I'm using v2.0 of ClassTextile.php, with the following call:
$testimonial_text = $textile->TextileRestricted($_POST['testimonial']);
... and all of my apostrophes (ex. It's hot in here) are being translated to ASCII
‘ (which is a single quote, which slopes the wrong way). What it should be is ASCII
’. I've also tried using
TextileThis() and I have the same problem.
If I go and try it on Textile's website (http://textile.thresholdstate.com/), it gives the correct ASCII code. So why isn't it working with the downloadable library? Or am I doing something wrong?