ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Quotation marks not working - entries template

July 29, 2013 2:46pm

Subscribe [1]
  • #1 / Jul 29, 2013 2:46pm

    starkee

    1 posts

    When a blog post has quotes or apostrophes in it “like this” or when it’s like ‘this,’ the punctuation is replaced with characters like ’s or ’s. This is only in the blog/entry template. Everything works fine in the blog/index template.

    Any ideas why? Both templates have the following code in the header:

    <meta charset="utf-8">

    And the site language is English.

    Here is the code for the blog/entry template:

    {sv_livelook}
    
    {exp:channel:entries channel="blog" limit="1" disable="member_data|pagination" status="{tv_status}" require_entry="yes"}
    
    {if no_results}
    {redirect="404"}
    {/if}
    
    {embed="includes/.header" title="{title}" body_id="blog" body_class="interior"{if blog_thumbnail} meta_thumbnail="{blog_thumbnail}"{/if} seo_id="{entry_id}"}
    
    <div class="centered clearfix">
    
    <article id="content" class="base">
    
     <h2 class="section-title">Blog</h2>
        <h1 class="h1">{title}</h1>
    <em>By {author} on {gmt_date format="%F %d, %Y"}</em>
       {blog_text}
        {sv_edit_me}
    
        <a href="/blog" class="button">More Blog Posts {lv_arrow}</a>
    
    
    {lv_tagline}
                            <form method="POST" acti>
                                <input type="email" id="email" placeholder="Email">
                                <input type="text" id="zip" placeholder="ZIP">
                                <input type="submit" id="submit" value="Get Updates {lv_arrow}">
                            </form>
    
    </article>
    
    {embed="includes/.footer" side="blog-entry" entry_id="{entry_id}" channel="blog"}
    
    {/exp:channel:entries}

    Can anyone point me in the right direction? I haven’t found much documentation on this. Help?

  • #2 / Aug 07, 2013 12:33pm

    Giraffentoast

    152 posts

    What if they’re in the template markup?
    Do they show up correctly?

    If working with template files, remember saving them as UTF-8.


    Typo?

    <form method="POST" acti>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases