• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1225
  • Last Modified:

Showing British 'pound' signs in ASP.NET

I'm in the UK so I want to preface currency amounts with the pound (£) sign. In Visual Studio 2003 I hardcode the £ sign into statements like 'All values are in pounds sterling (£)' but when the page is displayed they don't appear. This is weird because they show up OK in Visual Studio, and also when currency values are displayed in a datalist. Any ideas?
0
crescendo
Asked:
crescendo
  • 2
1 Solution
 
john-at-7fffCommented:
You should be able to show the pound sign in a web page with:

£

(ampersand followed by "pound" followed by a semi-colon.)
0
 
crescendoAuthor Commented:
That seems to do the trick! I tried &gbp; but (obviously) it didn't work.

Thanks
0
 
john-at-7fffCommented:
Glad to help. By the way, I think older browsers (much older) may know a numeric version instead of the alpha sequence. The numeric code is: £

See, for instance, here:

http://super.net.pk/htmlref/characters.html

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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