I could use some help displaying 8-bit ascii characters in my php code.
I cannot display the ™ character ( if you machine can't display the character it is the "TM" or trademark character) which has an ascii code of 153 dec or 99 hex and has an html equivalent of ™
The character gets displayed as ¿ (again if your machine can't display, it's an upside-down question mark) which has the ascii value of 191 dec or BF hex.
So, instead of displaying the text as:
My Name™
What I actually see is:
My Name¿
Any hints or suggestions would be greatly appreciated.
Some info about the environment:
I don't have php compiled with the imap stuff (and I don't think I can get it changed).
These characters are in a database that I cannot change either (so I can't convert them to the html equivalents).
My client is IE 5 on windows 95 pc.
The server is running Solaris 2.6 and the web server is Apache 1.3.12 with php4.0.4pl1.
I'm using the oci8 driver in my php code.
I'm reading data from an oracle 8.1.6 database.
In my env I have NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1.
This problem occurs with phplib DB_sql class with (table.inc)
or with adodb using tohtml.inc.php.
BTW:
On the server there is a java servlet (apache with mod-jserv) that can display the character correctly.
Thanks,
Mick
mmele@itwebsol.com