Problem with apostrophe

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
dinmix
Forum Members
Forum Members
Posts: 29
Joined: Sun May 06, 2007 2:49 pm

Problem with apostrophe

Post by dinmix »

Hi All

Does anyone know how to solve this? Every time I add an apostrophe on the News Module it end up displaying ’ on the website.

For example, when I add The Company's Logo it will displayed as The Company’s Logo instead of showing the apostrophe.

I am using 1.9.2. Any help is much appreciated. Thanks
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Problem with apostrophe

Post by spcherub »

Are you inserting the apostrophe via the WYSIWYG (TinyMCE) or are you pasting from another source? If the latter, try and just type in it in the WYSIWYG or switch to non-WYSIWYG view and insert the apostrophe that way.

If this is a bigger problem that just the one apostrophe you can insert smarty search-replace code in your News template that will clean up non-standard characters that may be entered by the user. (http://www.smarty.net/docs/en/language. ... eplace.tpl)

-S
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with apostrophe

Post by Dr.CSS »

This sounds more like a DB encoding problem...
Post Reply

Return to “CMSMS Core”