Home / Programming / php / How can I get rid of strange characters in my database output?
How can I get rid of strange characters in my database output?
Last updated: 02/22/2012
Sometimes users paste text into a database form that contains odd special characters. These can be strange quote marks, or foreign language accents, etc.
You can get rid of those in php
by wrapping the output string with utf8_encode