Skip to main content
Inspiring
December 23, 2008
Question

replace and £ symbol

  • December 23, 2008
  • 1 reply
  • 446 views
Why is it that if I submit £1234567890 as FORM.salary to either of the cfoutputs below, does it output the £ symbol still? I have tried the following:

#replace(FORM.salary, "£", "XXX", "All")#
#replace(FORM.salary, "£", "XXX", "All")#

Thanks,
Paul
    This topic has been closed for replies.

    1 reply

    Inspiring
    December 23, 2008
    Outside5.com wrote:
    > Why is it that if I submit ?1234567890 as FORM.salary to either of the
    > cfoutputs below, does it output the ? symbol still? I have tried the following:
    >
    > #replace(FORM.salary, "?", "XXX", "All")#
    > #replace(FORM.salary, "£", "XXX", "All")#
    >
    > Thanks,
    > Paul
    >

    The '?' character is displayed when the browser does not know how to
    display a specific character in the current character encoding it is
    using. The solution is to configure you web-site, web-server and
    ColdFusion to use the desired character encoding that can display the
    desired characters.

    Inspiring
    December 23, 2008
    Ian,

    Did you mean the ? or the pound (£)? My post was talking about removing the pound sterling symbol - not sure if your reader output that.

    What sort of configuration woulf I need to make tot he site, server and ColdFusion? I have made plenty of sites before but have never needed to remove a currency symbol from a string - seems a bit heavy to replace a character?

    Thanks,
    Paul