Jump to content

How To Get The Original Punctuation Characters Back


Gazley
 Share

Recommended Posts

Sorry Guys,

This is a refinement of an earlier question that introduced Textile as a bit of a red-herring! It's nothing to do with Textile.

You can see below, the words "touch up" are wrapped with the funky "â" character. 

Sometimes, you just need a digital âtouch upâ, just to bring out the very best in you.

This is the same for apostrophes too:
 
As Iâve said in 
 
This text is stored in a TextArea field that uses Textile to process text, not TinyMC or CkEditor. When it renders, the various pieces of punctuation are rendered on the page using "â".
 
Any ideas how I can just get the proper punctuation to show?
 
Thanks! :)
 
Link to comment
Share on other sites

Hmmm, so I looked further through my code where I was subsequently used a DOMDocument that set its own encoding. I had to do pass the string in as:

mb_convert_encoding($blogData, 'HTML-ENTITIES', 'UTF-8')

This made everything happy :)

Thanks.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...