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.

Valid quote marks not valid?

November 20, 2008 3:23pm

Subscribe [2]
  • #1 / Nov 20, 2008 3:23pm

    BlackHelix

    226 posts

    This is an unusual problem, I guess.  I’ve got this weblog entry that seems to be all right.  I got the text from someone else, pasted it in and formatted it.  On the preview page, everything looks fine.  But the rendered text has these weird entities. 

    I created a test page and entry, to test quotes.  Normal quotes seem fine, but the pasted ones are crap still.  http://lawbb.net/index.php/home/test2

    I can, I suppose, fix the offending quotes by tediously trying to track down them and retyping them.  But why are they showing up quite nicely in the entry preview?  I’ve turned off xhtml, the auto br thing, and even on none—no change.  So why is a curly quote—I think they are the ones—so offending?  And why do they show up in my preview but not on the actual site?  Same browser, etc. 

    Here’s some of the offending paragraph—just copied and pasted from the weblog entry page:

    Jeffrey Chaucer’s The Canterbury Tales were written about individuals in the 14th century British community, such as the knight, the miller, the reeve, the cook, the pardoner, and the merchant.  “Though lightly peopled, the world of Chaucer was mobile,” says F.R.H. Du Boulay.  “War, diplomacy, trade, administration, and the impulses of religion shifted men and women of even humble station about the country and far beyond its shores.”  Boulay also explained that many of the characters in Chaucer’s stories, despite their frequent travels, knew each other.  Political and economic changes that impact the marketability of certain professions experienced by professionals today is nothing new; and just as in times past, networking and the display of one’s education, experience, and other qualifications are sure ways to turn a new leaf.

    Am I missing something?  That text shows up fine in preview (and here on the forums), but all the quote marks are destroyed on the live site.  Regular quotes work just fine, though.

  • #2 / Nov 20, 2008 4:22pm

    Ingmar

    29245 posts

    My guess would be an encoding issue; you are using iso-8859-1 on your site, but perhaps some other encoding (possibly utf-8) for the rest of the site, including the backend. It’s got nothing to do with quotes as such, it’s just that you are not using any other high-ASCII characters.

    ’

    Yep, that’s a classic, utf-8 data shown as Latin-1. Try the encoding of your site to utf-8.

  • #3 / Nov 20, 2008 4:40pm

    BlackHelix

    226 posts

    Exactly how do I change the encoding of the site?  Is this the same as the change High Ascii command in global weblog preferences?

  • #4 / Nov 20, 2008 4:47pm

    Ingmar

    29245 posts

    No, you need to do this in your template. Where you have

    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

    it should probably read

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  • #5 / Nov 20, 2008 5:14pm

    BlackHelix

    226 posts

    Thanks, that got it.  Global variables are a wonderful thing….  :D

  • #6 / Nov 20, 2008 5:19pm

    Ingmar

    29245 posts

    Yes, I agree 😊 Glad that solved the issue for you. If anything else comes up, please do not hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases