Here is a question I think is more Oracle than php, but I'll throw it out and hope for a hit.
I have a record in an Oracle database table. In a text field I have several characters, which I can view via the OEM, that are "á"s. ( If you cannot see a character in the quotes, it is an á in html - an 'a' with a right pointing carrot on top. ) I believe these were originally bullets (<LI>) coming from a FoxPro Application going into the Oracle table on the backend. Maybe Oracle translated them into aacute looking characters. ??
When I use php to read in this record and display it on a web page, I need to change this character back to a Bullet or a <LI> character. My problem is my attempts are not working. Hmmm!
I thought that because I can see the character as an aacute, that the code would see it this way also. I've tried to filter for it using both the chr(225) value of the aacute and a copy-paste 'á'. Niether is working.
I've used preg_match('/á/', $textIn) and eregi_replace("á", $textIn) - not.
I've tried to use preg_match(chr(225), $textIn) or if( ord($textIn) == 225 ){...} and they do not work.
I did some php testing with a script that doesn't get this character from the Oracle table. I copied and pasted this character from the Oracle field into a php variable and my above filters work. Php sees this character as a chr(225), but when I read it in right from the Oracle table, it is as though it is not being seen as a chr(225).
So, my question is, does anyone have any other suggestions on what to filter for - for this aacute (looking) character?
Thanks for any suggestions.