Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems on html page


Recommended Posts

Posted

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();}<?

Posted

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();}<?

Posted

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.

Posted

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();}<?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...