Getting Smarter Slowly Posted November 1, 2010 Posted November 1, 2010 My first page is index.html. On that page I have "mom�s" instead of "mom's" but in the html it actually has the apostrophy in there. Any ideas why this is suddenly happening? Lake Geneva Pie Co. You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
Wayne Weedon Posted November 1, 2010 Posted November 1, 2010 Try setting character encoding in your browser to ISO 8859-1 that should fix it.
Getting Smarter Slowly Posted November 1, 2010 Author Posted November 1, 2010 Hmmm! Wonder how that changed all by itself? Well, thanks! I appreciate that info! You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
MrPhil Posted November 1, 2010 Posted November 1, 2010 I assure you that is not an apostrophe. It is a Microsoft "smart quote", and can be viewed as characters � . What you did was use MS Word to type in the text, forgetting to turn off smart quotes. Word changed the plain apostrophe ' you typed into a typographically pleasing apostrophe/closing single quote, which you cut and pasted into your page. You are displaying the page in UTF-8, which doesn't recognize the code(s) as a valid character. 1. Never use Word to type in text for a Web page. 2. If you want a typographically correct apostrophe instead of a plain ', use the HTML entity ’ in your text. 3. If you insist on using non-ASCII characters as binary "hard coded" characters, make sure your character set encoding used by the editor matches the encoding used to display the page. P.S. It is useless to change the browser's encoding. None of your customers are going to know to do that. It doesn't permanently change the page.
Getting Smarter Slowly Posted November 3, 2010 Author Posted November 3, 2010 Mr. Phil, Very interesting! You are probably right about using Word. Duh - on my part! I will make the corrections. Thanks You're never too old to learn. Even an old fart like myself loves learn and be creative. ?>if (empty($coffee)) {$coffee=new coffee();}<?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.