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?
LVL 9
crescendoAsked:
Who is Participating?
 
john-at-7fffConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.