Commas and dashes appear as question marks

I have a simple website, here is one section

http://bostontechnicalwriter.x10host.com/scopejunction.htm

I got tired of rewriting the navigation bar on each page, so I changed all the extensions from htm to php, wrote a separate navbar.php file, and call it on each page with the command <?php include('navbar.php');?>

Here is the same section on a different host

https://exper17.000webhostapp.com/gmvolt.php

It works! I only have to write the navbar once, but why have all the commas and dashes turned into question marks? I tried the same thing elsewhere and it does the same thing, so it’s not the host - I must be doing something wrong. How do I correct this?

Assume you fixed it?

What are you writing the content in, Word?

Word will do it every time…

Aston & Kevin

Problem has NOT been solved

Probably the easiest way to see what I wrote is to go to
https://exper17.000webhostapp.com/gmvolt.php
and hit Ctrl+U,

But please note that I included a subset of that page at the end of this note. By the way, when I hit Ctrl+U, I see that my one PHP command caused the navbar to be seamlessly sucked into the page, as though I actually wrote it there- So Neat!

I feel that I am somehow ignoring something obvious.

-Gary

      <h5 style="margin-left:20px">WHY IT’S DIFFERENT THIS TIME</h5>


      <div id="paragraph2">

Like all electric cars, the real story is the battery. For the first time, thanks to nanotechnology, there actually is a battery that stores enough energy to power a mid-sized vehicle for 40 miles at highway speed and highway acceleration. After that, an onboard gasoline engine’s only purpose is to power an electric generator to recharge that battery. From that point on, the car achieves 50 mpg.

The problem is because you are mixing character sets.

Hi Kevin,

Mixing character sets? I don’t understand. How do I fix that?

I don’t know if this is relevant, but the problem only happened when I included the php command. I have the EXACT same website without the php command, and the problem wasn’t evident.

So, what do so as not to mix character sets?

Thanx,
Gary

Since the snotty Kevin Rubio can’t be bothered to give a straight answer to a straight question:

The problem is because you are mixing character sets.

How do I fix this? What where am I doing wrong? This problem did not exist until I put in the one php command

Well, I doubt now that you’ll get anyone to answer you after this. You do realize that people who help out others here have a life outside the forum? An this is probably going to sound rude, but you don’t exactly narrow your problem down far enough to help you out. All I can say from past experiences is make sure you have the php code written syntactically correct, for I have spent hours and hours over a similar problem only to find out it was a simple syntax error.

Sponsor our Newsletter | Privacy Policy | Terms of Service