ut8 encoding issue
Posted: Wed Feb 11, 2009 11:00 pm
I am writing user inputs into a xml file. This file is then read in using the DOMdocument object.
How do I encode the following string:
"Billy’s &"
Please be aware that this ' is different from ’
ut8_encode encodes the funny apostrophe but not the ampersand. htmlentities encodes the ampersand but not the funny apostrophe.
Can someone help?
How do I encode the following string:
"Billy’s &"
Please be aware that this ' is different from ’
ut8_encode encodes the funny apostrophe but not the ampersand. htmlentities encodes the ampersand but not the funny apostrophe.
Can someone help?