01-09-2009, 02:42 AM
|
#9 (permalink)
|
|
The Visitor
Join Date: Jan 2009
Posts: 3
Thanks: 0
|
Quote:
Originally Posted by Wildhoney
I don't understand your question, drolex. It is possible to use them, but for what purpose? What do you want to achieve?
|
The default quotestyle is ENT_COMPAT which only encodes double quotes. I think I need ENT_QUOTES which will also encode single quotes. I wanted to use character set "UTF-8" because everything else is UTF-8, and the default for htmlentities is ISO-8859-1 - Western European.
I have a database that stores descriptions for things. The user often enters descriptions containing quotes. All quotes and symbols need to be converted to html entities so the description can be show and not mess up the rest of the page. I want to store the descriptions pre-encoded so it doesn't have to use extra process cycles everytime the page is shown.
|
|
|
|