How do I figure out a special character used in a console, when processed with PHP and displayed in browser?

I'm using PHP to interface with a legacy console program (not PHP).  No big worries doing so.  What is weird, however, is when I use the console directly, there is what appears to be a double space when I execute a command and get a specific response.  No worries.  When I try to display the console dialog in a web browser however, by reading lines from the console, this double space shows up as a black diamond with a white question mark.  All other characters display just fine, so I'm not sure what particularly to do.  Do I need to process the text in a UTF8 or similar format?  Or alternatively, how does one go about determining the hex equivalent of the special character?
XercAsked:
Who is Participating?
 
barkermn01Commented:
This diamond with a question mark is a unrecognised character to HTML Use php  htmlspecialchars($output) where $output is the text you wish to display in html.
0
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.

All Courses

From novice to tech pro — start learning today.