Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1874
  • Last Modified:

formatcurrency showing invalid character symbol instead of pound sign

i've got this code:
--------------------------------------------------------------------------------------------

      display = display + "<div id=""productsProductOuterContainer"">"
      display = display + "<div id=""productsProductContainer"">"

      display = display + "<div class=""productImageContainer""><a href=""product.asp?ProductID=" + ProductID + "&ProductName=" + ProductName + "&Department=" + dept + "&menswomens=" + category + """><img src=""images/md/" + ProductImage + ".jpg"" class=""productimages"" alt=""" + ProductName + """/></a></div>"
      display = display + "<p>" + ProductName + "<br />" + formatcurrency(ProductPricerrp) + "</p>"
      display = display + "<a href=""product.asp?ProductID=" + ProductID + "&ProductName=" + ProductName + "&Department=" + dept + "&menswomens=" + category + """><img src=""images/" + session("menswomens") + "bt_view.gif"" alt=""View"" /></a>"

      display = display + "</div>      <!-- end of productsproductcontainer -->"
      display = display + "</div>"


   response.write(display)
--------------------------------------------------------------------------------------------

but instead of formatcurrency(ProductPricerrp) showing £ before the price, its showing an invalid character symbol (square).  Any ideas please?  
0
tingleweb
Asked:
tingleweb
1 Solution
 
kevp75Commented:
you will probably have to change the codepage of the page in question to be uk.  I know the server may be located in europe, however it may have been configured to be us, or some other country
0
 
kevp75Commented:
another thing that may do it, the DTD you use
0
 
b0lsc0ttCommented:
Besides the above look at the encoding for the page.  This can be done with an html meta tag but is even better from the server.  In ASP it would be done with ...

Response.AddHeader "Content-type", "text/html; charset=utf-8"

You could use a different encoding but utf-8 is one that should support that symbol.

Let me know if you have a question or need more info.

bol
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
b0lsc0ttCommented:
One other thought and maybe the simplest solution if it is an encoding issue.  Use HTMLEncode.

   response.write(Server.HTMLEncode((display))

bol
0
 
tinglewebAuthor Commented:
the answer was formatnumber rather than formatcurrency
0
 
modus_operandiCommented:
Closed, 500 points refunded.
modus_operandi
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now