SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: htmlentities() trouble
-
Jun 12, 2007, 09:30 #1
- Join Date
- Nov 2004
- Location
- Lytham
- Posts
- 163
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
htmlentities() trouble
Whenever I add a £ sign into my DB via a form, it enters £ instead of £
however it converts others, such as & to & without trouble.
Can anyone help with this?
-
Jun 12, 2007, 16:48 #2
- Join Date
- Jul 2005
- Location
- West Springfield, Massachusetts
- Posts
- 17,290
- Mentioned
- 198 Post(s)
- Tagged
- 3 Thread(s)
pound
The pound sign is a problem because of the character encoding.
string htmlentities ( string $string [, int $quote_style [, string $charset [, bool $double_encode]]] )
Other than that, you could try str_replace()Big Change Coming Soon - if you want your PMs save them now!
What you need to do to prepare for our migration to Discourse
A New SitePoint Forum Experience: Our Move to Discourse
Bookmarks