? character displays instead of pound sign

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • monomaniac21

    #1

    ? character displays instead of pound sign

    hi im outputting text from a db and where a £ sign has been entered a
    ? character appears instead which i cant seem to get rid of with a
    simple str_replace. is their a way to get rid of it? and what is
    causing it?

    regards

    marc

  • Slant

    #2
    Re: ? character displays instead of pound sign

    My best guess (and that's all it really is - I just figured I'd have a
    go at this) is that the character set is not correct for what you're
    trying to do. The '?' is often used when the character set does not
    support a character that is being displayed. I know that the character
    set can be changed using a meta tag in simple html.

    I hope that helps somewhat.


    monomaniac21 wrote:
    hi im outputting text from a db and where a £ sign has been entered a
    ? character appears instead which i cant seem to get rid of with a
    simple str_replace. is their a way to get rid of it? and what is
    causing it?

    regards

    marc

    Comment

    • Kevin Wells

      #3
      Re: ? character displays instead of pound sign

      In message <1157472098.278 021.59380@b28g2 000cwb.googlegr oups.com>
      "monomaniac 21" <mcyi2mr3@googl email.comwrote:
      >hi im outputting text from a db and where a £ sign has been entered a
      >? character appears instead which i cant seem to get rid of with a
      >simple str_replace. is their a way to get rid of it? and what is
      >causing it?
      >
      >regards
      >
      >marc
      >
      Try &pound; for £
      --
      Kev Wells http://kevsoft.topcities.com

      ICQ 238580561
      Walk upon England's mountains green?

      Comment

      • monomaniac21

        #4
        Re: ? character displays instead of pound sign

        >
        Try &pound; for £
        --
        i cant as it is the user entering the pound into textarea.

        Comment

        • Juliette

          #5
          Re: ? character displays instead of pound sign

          monomaniac21 wrote:
          >Try &pound; for £
          >--
          >
          i cant as it is the user entering the pound into textarea.
          >
          Excuse me.. you mean you are accepting user input with your eyes wide
          shut ?!?! No validation or formatting at all ?
          Bad practice to start with...

          But hey.. it's your app that will get hacked, not mine.

          For solving the ? puzzle, set the form encoding to the correct charset,
          set the page encoding to the correct charset, send a good charset header
          and use htmlentities() *with* the optional encoding parameter.

          It that doesn't help you, be more specific in your question.

          Comment

          Working...