I have this value in a mysql database: ‘A+’ it’s the name of a magazine. I can see it sitting in the database, however i cannot manage to have it display via php. When i fetch the sql data, it outputs
‘A ‘
I tried utfencode() utfdecode() htmlentities() … to no avail. I fail to diagnose the problem. In case it matters, i fetch this data via ajax (jquery load() function)
UPDATE:
It turns out the + sign is removed while parsing the data through a regular expression. can’t seem to find a fix for that either. preg_quote() is of no use.
It is possible that jquery is interpreting it as the url encoded ‘+’ sign, which can be interpreted as a space. Post some code and I’m sure somebody can give you a full answer.