Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Small Apostrophe problem

 

 


northernpenguin
User

Dec 9, 2011, 6:52 PM

Post #1 of 8 (1170 views)
Shortcut
Small Apostrophe problem Can't Post

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


gkornbluth
Veteran

Dec 11, 2011, 2:33 PM

Post #2 of 8 (1150 views)
Shortcut
Re: [northernpenguin] Small Apostrophe problem [In reply to] Can't Post

Hi northernpenguin,

Have you tried replacing the ' with an &39; or another ASCII character

here's a link to a chart

http://www.ascii.cl/htmlcodes.htm

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


northernpenguin
User

Dec 11, 2011, 2:38 PM

Post #3 of 8 (1148 views)
Shortcut
Re: [gkornbluth] Small Apostrophe problem [In reply to] Can't Post

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

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


gkornbluth
Veteran

Dec 11, 2011, 2:48 PM

Post #4 of 8 (1147 views)
Shortcut
Re: [northernpenguin] Small Apostrophe problem [In reply to] Can't Post

How about escaping the ' ?

\'

or an ’

Jerry
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


northernpenguin
User

Dec 11, 2011, 2:52 PM

Post #5 of 8 (1146 views)
Shortcut
Re: [gkornbluth] Small Apostrophe problem [In reply to] Can't Post

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


gkornbluth
Veteran

Dec 11, 2011, 3:11 PM

Post #6 of 8 (1145 views)
Shortcut
Re: [northernpenguin] Small Apostrophe problem [In reply to] Can't Post

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!
http://www.thecmsbcookbook.com


northernpenguin
User

Dec 11, 2011, 3:16 PM

Post #7 of 8 (1144 views)
Shortcut
Re: [gkornbluth] Small Apostrophe problem [In reply to] Can't Post

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


Jason
Staff / Moderator


Dec 11, 2011, 10:22 PM

Post #8 of 8 (1118 views)
Shortcut
Re: [northernpenguin] Small Apostrophe problem [In reply to] Can't Post

Hi,

You can also try htmlspecialcharacters like this:


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


Hope this helps
---------------------------------------------------
Jason Sauchuk - Programmer 
interactivetools.com

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