We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

apostrophe in my title field looks jacked up on the site

Development and Programming

Brad Haynes's avatar
Brad Haynes
105 posts
16 years ago
Brad Haynes's avatar Brad Haynes

Everything looks normal in the CMS. When i preview on the front end, my entry, titled:

“Bob’s Business”

looks like:

“Bob’s Business”

Any help is greatly appreciated. Brad

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Brad, I don’t see a difference between the two. Do you have a link we can see?

Are you using SmartQuotes when putting in the apostrophe?

       
Brad Haynes's avatar
Brad Haynes
105 posts
16 years ago
Brad Haynes's avatar Brad Haynes

Ha! oops, i forgot the code tags. I meant:

“Bob’s Business”

looks like:

“Bob’s Business”

http://beta.ebonite.com/resources/distributors_list

And I believe I’m using the ’ correctly. Is there some setting that is causing this?

       
Greg Aker's avatar
Greg Aker
6,022 posts
16 years ago
Greg Aker's avatar Greg Aker

Brad:

You are running into an issue with the encoding of the apostrophe in the email address. Please go to: CP Home › Admin › Weblog Administration › Global Weblog Preferences and turn “Automatically Convert High ASCII Text to Entities” to “No.” Since this setting applies to new entries, try making the entry again.

Please see this thread for more information from Derek Jones on this.

Kind Regards,

-greg

       
Brad Haynes's avatar
Brad Haynes
105 posts
16 years ago
Brad Haynes's avatar Brad Haynes

it’s already set to no, and it’s not an email address either. i thought that was gonna work though…

       
Greg Aker's avatar
Greg Aker
6,022 posts
16 years ago
Greg Aker's avatar Greg Aker

Brad:

I’m confused. You are talking about Bob’s Business in your distribution list, right?

Under your “business” column on the distribution page when I hover my mouse over the links they all show mailto, and if I click them, my mail client pops up with the email address.

Can you post the code you are using to in an entry & on your template to get what is being rendered on the screen?

Thanks,

-greg

       
Brad Haynes's avatar
Brad Haynes
105 posts
16 years ago
Brad Haynes's avatar Brad Haynes

oh, no, you’re right, i’m wrong. it is an email address.

But, “Automatically Convert High ASCII Text to Entities” is set to “No”. Below is the code in the template.

<td class="td_category">{if dist_email}{encode="{dist_email}" title="{title}"}{if:else}{title}{/if}</td>

An encode issue perhaps?

Thanks a lot, Brad

       
Brad Haynes's avatar
Brad Haynes
105 posts
16 years ago
Brad Haynes's avatar Brad Haynes

Ok, it is definitely an encode problem. When I change the template to:

<a href="mailto:email_address">{title}</a>

No funny characters. Is there any way to keep the security with the encode AND have it display correctly?

-b

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Brad, there is a third party offering that might be of help:

Spam Me Not

       
Brad Haynes's avatar
Brad Haynes
105 posts
16 years ago
Brad Haynes's avatar Brad Haynes

cool, i’ll check it out. thanks guys.

-b

       
Greg Aker's avatar
Greg Aker
6,022 posts
16 years ago
Greg Aker's avatar Greg Aker

Brad:

Another option could be to not put apostrophes into the email addresses so you can use the ExpressionEngine email obfuscation.

-greg

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

I’m running into this issue with page titles and LG Better meta. Anything with an apostrophe in it comes out as:

’

I have a simple entries tag, grabbing the title of an entry (that has an apostrophe) and it’s rendering in the title as that numeric entity every time. “Automatically Convert High ASCII Text to Entities” is set to no.

ExpressionEngine 1.6.6 - Build: 20081114

Seems like if I try to feed that title to any plugin (Low’s seg2cat, Better Meta…) they all get it wrong. I just need the title to show correctly at the top of the browser!

       
Greg Aker's avatar
Greg Aker
6,022 posts
16 years ago
Greg Aker's avatar Greg Aker

Hey Ryan,

Can you confirm if this is a problem without the plugin in the mix?

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

Greg - I think it has to do with the plugins, which means there is probably no way I can pass the title through them to dynamically populate the title of the page. I’d investigate further right now, but I’m up against deadline and just have to move on.

       
Greg Aker's avatar
Greg Aker
6,022 posts
16 years ago
Greg Aker's avatar Greg Aker

Ryan,

I’d probably sound Leevi on it, but as a quick solution, maybe the find & replace plugin?

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.