Forum Moderators: coopster
which gets stored in mysql as:
And when I select it from a database and print it to the page it shows up as this (even in the view source):
I have never noticed this behavior before, and now I'm having multiple problems. When I go and run a function to remove any symbols (not numbers or characters), this is what prints to the screen:
I know nothing about character sets. That field is apparently set to "latin1_swedish_ci". Also, when I do substr() for 5 character, it outputs like: What&
If I send an email with php with that as the body, it says
I'm at my whits end googling, whenever I type in ' it converts it to symbol! Any help or insights! This has never been a problem to me nor have I noticed it as I have always just printed the data and lived with the substr() problem. Thanks.
But be careful if you use a simple echo for debugging, since you're dealing with HTML entities the browser will translate the entities for you before displaying them, so you need to look at the page's HTML source to see the real values.
Hope this helps.