November 19th, 2007, 02:57 PM
Problem with strange characters appearing instead of Apostrophe
My problem is a bit difficult to search for (as the characters are a bit weird) so forgive me if this has been answered before.
The problem I'm having is that anytime an Apostrophe is used, I get a bunch of weird characters. Here's an example:
The bit highlighted in bold is the problem area. Instead of an apostrophe, I'm getting '’' a similar problem occurs when a pound sign is used, which I assume has something to do with non-standard characters (i.e. non alpha-numeric).
I've tried to changing the encoding type in the <head> section of the HTML but to no avail.
Does anyone have any idea what's happening?
P.S. There are no fancy scripts or anything like that, not even stylesheets this is just a very simple website, using the original template photoshop drew up when I sliced it.
November 19th, 2007, 04:07 PM
Not sure what your HTML looks like, but make sure you are using the correct escape characters for what you are doing.
November 20th, 2007, 07:57 AM
Hi jzd, thanks for your reply.
Could you tell me what you mean by the correct escape characters? I added text to the HTML pages using Dreamweaver, I assumed that since it is a WYSIWYG editor I can type as I would in a Word Document or something similar?
November 20th, 2007, 08:41 AM
Look at the HTML for that word, is it correct? What does it have there?
November 20th, 2007, 08:53 AM
The HTML for that word is exactly as it is on the page (i.e. the characters are there instead of the apostrophe).
Also, if I download the page from my webserver (via ftp) then open it up in Dreamweaver CS3, it comes out perfectly, apostrophes and all.
November 20th, 2007, 09:11 AM
I did a quick google search and found it might have something to do with copying data from Word into Dreamweaver. (In that case adjust some of the setting for the smart quotes are off).
Originally Posted by Xeijin
Might also be an encoding issue, try this one:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
November 20th, 2007, 10:17 AM