Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Translating odd characters in PHP?

I've got a MySQL database with user-entered text in it, and I'm using PHP to display it in a HTML web page.

There are a handful of 'unusual' text characters which appear in Word, but appear as little black diamond shapes with question marks in when shown in a web browser- things like triple dots or slanted quotation marks.

Is there a built-in PHP routine which can translate (or just remove) these characters?

3 Answers

Relevance
  • Anna
    Lv 5
    10 years ago
    Favorite Answer

    Showing characters in browser often dependent from languages settings of user PC and also from installed fonts.

    If you cannot view some characters it often assumes that on your OS not installed needed fonts or in html / css need to set more wide wideband for font-faces

    Other users, who has installed fonts, can properly view such letters

    For example: if you dont have support of thai inscription on your PC you never view theses characters properly, only diamonds with questionmarks, But if i have enabled thai language support - all OK!

  • 5 years ago

    Pontius Pilate, Emperor Augustus and a couple of different humans truthfully did, however a number of of them lived on the 'fallacious' time for them to have performed something function was once claimed within the bible.

  • 10 years ago

    $str = htmlentities($originalstring);

Still have questions? Get your answers by asking now.