Apostrophe in string appearing as a box when output to HTML

Hello, all!

I posted a similiar question in the past where I had the issue of a box appearing in instead of quotation marks...and this was solved....but I am still having the same issue with the apostrophe and I can't seem to get it to work.

A brief description:
I am pulling a series of strings from a mySQL database and storing them in a JavaScript array.  I am then cycling through these and displaying them in a rotating manner on the screen.  The strings are escape coded by PHP before they are placed into the JS array....I am then using the following JS function before outputting to the screen:

function URLDecode(psEncodeString)
  // Create a regular expression to search all +s in the string
  my_string = unescape(String(psEncodeString).replace(/\+/g, " "));
  my_string = my_string.replace(/\%3e/g,'"');
  my_string = my_string.replace(/[\x93\x94]/g,'"');
  return my_string;

This works great for the quotations...but I've tried adding another replace to remove the apostrophe without any luck.  I will paste an example of the string as I see it output to the screen (I see it as a box...but when the post to this thread occurs, it will show the character value).

...NOW’S THE TIME!  Check out these...

Any help would be MUCH appreciated.

Thanks in advance!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this:

my_string = my_string.replace(/!+/g,'');

tried add also the line

  my_string = my_string.replace(/’/g,"'");

before return-ing?
homemadebyxAuthor Commented:
raj3060 and KennyTM -

Tried both the solutions...unfortunately, neither has eliminated the box from appearing....

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ZvonkoSystems architectCommented:
Check this:

function URLDecode(psEncodeString) {
  my_string = unescape(String(psEncodeString).replace(/\+/g, " "));
  my_string = my_string.replace(/\%3e/g,'"');
  my_string = my_string.replace(/\x92/g,"'");
  my_string = my_string.replace(/[\x93\x94]/g,'"');
  return my_string;


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
homemadebyxAuthor Commented:
Zvonko -

You da' man!

ZvonkoSystems architectCommented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.