[Resolved] â€™Code taking over my apostrophes!
It happens usually when you copy and paste text into the editor from a wordprocessor or notepad or something else like that… the only real way to do it is to go in and delete that and replace it with a hand-typed apostrophe… or just don’t copy and paste.
If you’re worried about spell checking or losing your post, type it into the WP editor, then copy THAT and paste it into word or wherever else for a “backup” or a way to spellcheck.
Well… now I’ve got new funky characters appearing…even though I types text directly through WordPress. It’s an Â symbol. Any ideas?
Hmm… not sure on that one. You’re definitely typing “from scratch” inside the WP editor?
And if it’s the blog from “goflyasite” – I have to tell you that I’m not seeing any erroneous characters in your posts – I’m using Firefox browser on Windows XP Pro… *shrug*
Yup… straight from the WP editor. Weird. It only shows at various times, BTW…not always. Very strange. Thanks again for your help!
you’re welcome! 🙂 wish i could help you figure that last one out…
Your blog is in utf-8 but browsers are defaulting to the ISO-8859-1 character encoding. You should send a content type header with a utf-8 charset.
Wow…okay I may in over my head with this one. Can you clarify where I can “send a content type header?” I found a reference to utf-8 in the contact area. But I’m afraid I’m to to PHP…so if it’s an easy tutorial I would love your help!
<meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
in header.php of your active theme. Change the php bit to explicitly state UTF-8
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
Failing that, add a
AddType “text/html; charset=utf-8” php
directive to the .htaccess in the doc_root of your blog.
If that doesn’t make it output in UTF-8 I don’t know what to tell you.
Thank you all for your help. Still no luck… and I admit I’m a newbie at this php stuff…but I’m so determined! I tried the first step in the last post (no luck). Got a bit lost on “.htaccess in the doc_root”
Appreciate the support and patience!
In hindsight, my little AddType theory probably wouldn’t work as I’m sure not all WP pages end in .php when they’re output ot the browser, if any are at all. The directive requires a file extension to work.
Your blog is outputting UTF-8 and that’s what’s being sent to the browser, BTW, so you’ve fixed it. Your site itself is still ISO 8859-1 but that’s easily fixed as well.
I may have fixed, but the funky “Â” is still appearing many times (not always). I’ve cleared my cache…still there…
I had this problem and solved it with this:
- The topic ‘[Resolved] â€™Code taking over my apostrophes!’ is closed to new replies.