SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    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?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,990
    Mentioned
    186 Post(s)
    Tagged
    2 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]]] )
    You may be able to solve your problem by specifying the $charset argument.
    Other than that, you could try str_replace()


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •