Small Apostrophe problem

8 posts by 3 authors in: Forums > CMS Builder
Last Post: December 12, 2011   (RSS)

I have a small problem which is driving me crazy! My clients website is in both english & french. One of my text fields includes data in this format (french):

Patron d'honneur

When displayed on the website page, it displays like this:

Patron d

Is there anyway to have the complete data field printed (after the ')?

Thanx........ragi
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [gkornbluth] Small Apostrophe problem

Tried that! Didn't work.
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [northernpenguin] Small Apostrophe problem

How about escaping the ' ?

\'

or an ’

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Small Apostrophe problem

Hmmm. I tried the \, but not the ’

I'll try that.
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [northernpenguin] Small Apostrophe problem

Hi Ragi,

Hope it works. Is this perchance a WYSIWYG field?

I've used a number of accented characters with entities but never a '

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Small Apostrophe problem

Gerry: no, it's a text field. If it was WYSIWYG, then the other solutions would have worked.
--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke

Re: [northernpenguin] Small Apostrophe problem

By Jason - December 12, 2011

Hi,

You can also try htmlspecialcharacters like this:

<?php htmlspecialchars($record['field']);?>

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/